Use // for one-line comments and /* */ for multi-line comments
timleg002 opened this issue ยท 6 comments
I think the # is abolishing all existing standards in other languages, where all comments are declared by // and /* */.
Well, that's not exactly true ๐คMost interpreted languages actually use #
as comment symbol for single line comments. Plus, it is useful for having shebangs in the source code.
Thanks a lot for the suggestion though ๐
I don't think why you must be like every interpreted language ever.
I think the # is abolishing all existing standards in other languages
Python: Hold my beer!
@timleg002
It's not just about being like every other programming language. Shebang is the main reason why I opted for this style. ๐
@vitkarpov haha true ๐
Don't know about you, but I'm a fan of keeping languages clear. Also I really hate Python, so I thought this language was worth checking out
I dislike python syntax as well. But for comments, it's just a norm in interpreted languages (one that I don't mind), plus I'd really like to maintain compatibility with the shebangs
, for which I can't forfeit this syntax.
I do hope that you still enjoy the language, however, changing comments from #
to //
not only provides no real benefit, but also bereaves the language of a rather useful functionality - shebangs
.