Hacker News new | past | comments | ask | show | jobs | submit login

I believe back in the Java days, there are packages that are also doing something like this (comment preprocessor for generating code)

Those plugins would try to point out that the comments that they would preprocessed would look somewhat different from regular comment, e.g.

//this is a regular comment

//#while comments that start with '#' would be preprocessed.

It's still an issue that would shoot the foot of the next person who would maintain your code though.




Yes, I'd find it marginally less sucky if there at least were some special prefix like //# or whatever to mark magic semantically significant comments. And what's the deal with the `field[type]` syntax that seems totally ad hoc, why not use the standard Go syntax `field type`?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: