Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xyproto
on May 11, 2015
|
parent
|
context
|
favorite
| on:
Go Lang: Comments Are Not Directives
Fully agree. I love Go and use it for anything related to servers or the web, but doing anything with comments besides just letting them be comments, is just braindead.
andrewchambers
on May 11, 2015
[–]
They aren't used by the compiler at all.
ominous_prime
on May 11, 2015
|
parent
[–]
//#cgo //go:nosplit //go:noescpae
are all used by the compiler in one way or another
andrewchambers
on May 11, 2015
|
root
|
parent
[–]
nosplit and noescape are internal details which are implementation specific.
ominous_prime
on May 12, 2015
|
root
|
parent
[–]
All of these are implementation specific. That's one reason they're in comments, and not listed in the language spec.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: