TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go 1.4 to include new code generation tool

8 pointsby drsintomaalmost 11 years ago

1 comment

marcus_holmesalmost 11 years ago
wrong place to comment, no doubt, but I&#x27;d really like it if the syntax for generator instructions was separate from the comments syntax. e.g. generator instructions used another &quot;special character&quot; set instead of &#x2F;&#x2F; (!!, <i></i>, etc)<p>Two reasons:<p>1. How do you comment out a generator instruction?<p>2. A generator instruction isn&#x27;t a comment, and isn&#x27;t intended to be human-readable, and shouldn&#x27;t be able to be confused with that.<p>I find the json field tagging in structs annoying for the same reason; it feels like a kludge wedged in later to make up for a gap in the original syntax.