Re:You can't do that because I hate you
by akoboldfrying on Thursday December 28, 2023 @06:50PM
(#38800197)
JavaScript automatic semicolon insertion does a great job most of the time, but still leads to bafflement when code like
(from your linked page) does the wrong thing, because both forms (with and without a semicolon) are syntactically valid. I would much rather just always use semicolons (or, like Python, never use them) than have to memorise the 5% of oddball cases where I need to add them manually to resolve ambiguity.
[ Parent
| on HN ]
There are no comments on this comment yet.