News for hackers. Stuff that matters.
Re:Go Lang: Comments Are Not Directives by bsaul on Monday May 11, 2015 @02:51AM (#9523116)
Agree as well.

They could use the same convention as typescript and use a triple slash instead. That wouldn't change much of the language and impact IDEs, but at least distinguish between human comments and tooling instructions.

Re:Go Lang: Comments Are Not Directives by enneff on Monday May 11, 2015 @02:52AM (#9523119)
What's the difference between "///" and "//go:"? The latter is Go's official convention, it's just that unfortunately some of our older mechanisms predate the convention.
Re:Go Lang: Comments Are Not Directives by anatoly on Monday May 11, 2015 @07:38AM (#9523918)
What do you mean "Go's official convention"? Go is a language; it has a spec. Is it in the spec? No. What is this "Go" that this is an official convention of, and where is it standartised beyond your comment?
Re:Go Lang: Comments Are Not Directives by tomjen3 on Monday May 11, 2015 @11:10AM (#9525318)
Realistically there is no big difference between /// and //go: although the former is well used (Java, C# and, probably more importantly for Golang, jsdocs are written as /). Either would be useful.

But the complaint is about //foobar: and that is just confusing.

Re:Go Lang: Comments Are Not Directives by Merkur on Monday May 11, 2015 @04:00AM (#9523285)
no difference - both are misused comments.

the main problem is not technologie but semantic. If you agree with me that the meaning of a comments is communication between humans, than you must also agree - in my opinion - that comments can not be directives to a tool chain.

It is ambiguous. It is error prone. It is easily solved using an other token.

And in the long run it may lead to madness like Java testing and documenting frameworks.

as for technical problems - I think some really bad ones are mentioned in this very discussion!

Re:Go Lang: Comments Are Not Directives by bsaul on Monday May 11, 2015 @03:41AM (#9523240)
None, i just didn't know about //go: :)