Re:Apple JavaScript Coding Guidelines [pdf]
by Hovertruck on Tuesday July 05, 2011 @03:15PM
(#2731145)
I find it strange that the "Global Scope Considerations" section uses Ruby-style inline comments (#) rather than actual JS inline comments (//).
[ Parent
| on HN ]
I find it strange that you refer to comments starting with # as Ruby-style comments.
Re:Apple JavaScript Coding Guidelines [pdf]
by Hovertruck on Tuesday July 05, 2011 @04:03PM
(#2731320)
Or any other language that denotes comments with an octothorpe, but I opted for brevity.
I'm pretty sure Ruby is bigger than Perl and sh put together now, at least in mindshare.
Re:Apple JavaScript Coding Guidelines [pdf]
by mark_story on Tuesday July 05, 2011 @10:25PM
(#2732357)
python and PHP also support # for making comments. It could be argued that python has just as much if not more mindshare than ruby. :)
I agree. I think "Python-style comments" would be just as reasonable a term. My impression was that the comment I was responding to was objecting on historical grounds, since Ruby and Python borrowed that comment style from Perl, which in turn borrowed it from shell scripts.