Reply to post: Re: Programming interminable comments

It's always DNS, especially when a sysadmin makes a hash of their semicolons

Kubla Cant

Re: Programming interminable comments

The joys of statement terminators

There is no joy to compare with JavaScript automatic semicolon insertion. It's a "feature" created for script kiddies too stupid or lazy to terminate their statements. It almost never causes bugs*, but when it does, it will take hours to find.

*the classic bug is where you have "return<newline><somethingVerboseLikeAnObjectLiteral>;<newline>". It will return after the first newline. In the absence of proper function signatures, this will only be manifest if the calling code fails in consequence of the undefined value returned.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon