Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mattkrea
on May 11, 2015
|
parent
|
context
|
favorite
| on:
Go Lang: Comments Are Not Directives
Reminds me of typescript
/// <reference path="../typings/tsd.d.ts" />
kg
on May 11, 2015
[–]
/// 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
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
/// <reference path="../typings/tsd.d.ts" />