Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kg
on May 11, 2015
|
parent
|
context
|
favorite
| on:
Go Lang: Comments Are Not Directives
/// is metadata/docstrings - it's a convention from C#. So a /// block is parsed by the compiler and tooling (to generate documentation xml files, for example), while a // comment is not parsed at all, just stripped.
mattkrea
on May 11, 2015
[–]
Gotcha. Although most of the guys I see use the /// <summary> stuff as comments in the real world I guess I can see the difference.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: