Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #124442
| From | John Harris <niam@jghnorth.org.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: 30 Years Of JavaScript |
| Date | 2026-07-14 10:50 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <11350pc$93a3$1@dont-email.me> (permalink) |
| References | <vuc5g5$dmqd$1@dont-email.me> <1132o8b$3jv8i$1@dont-email.me> |
On 13/07/2026 14:12, Mikko wrote:
> On 24/04/2025 04:52, Lawrence D'Oliveiro wrote:
>> OK, so the actual anniversary was back in March. But I just
>> (re)discovered the InfoWorld site, and was surprised to discover it
>> has become such a software-development-focused place (was it before?).
>>
>> This article
>> <https://www.infoworld.com/article/3836901/10-things-developers-love-
>> about-javascript-and-10-things-they-dont.html>
>> goes over some of the things the author(s) love about JavaScript, and
>> some things they don’t.
>>
>> In terms of punctuation, didn’t they know semicolons (at least as
>> statement terminators) are optional in JavaScript? Yes, the rule is a
>> bit more subtle than in Python, but even I, a Python programmer, was
>> able to figure it out.
>
> I would like to have the semicolons mandatory. They should also be
> required after a '}' if the statement the block is part of endt there
> (no 'else' or 'until' follows).
This is a statement :
{ }
and so is this :
;
Therefore
{ } ;
is two statements.
The way to solve the Dangling Else problem is to end every if statement
with :
endif
but that's unlikely to happen.
Incidentally, the history of semicolons in javascript is that a lot of
people scream loudly if semicolons aren't used, and just as many scream
loudly if they are. :-(
John
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
30 Years Of JavaScript Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-04-24 01:52 +0000
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-13 16:12 +0300
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-13 22:31 +0000
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-14 09:59 +0300
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-14 07:27 +0000
Re: 30 Years Of JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-07-18 04:51 +0200
Re: 30 Years Of JavaScript John Harris <niam@jghnorth.org.uk.invalid> - 2026-07-14 10:50 +0100
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-14 22:12 +0000
Re: 30 Years Of JavaScript John Harris <niam@jghnorth.org.uk.invalid> - 2026-07-15 11:01 +0100
Re: 30 Years Of JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-07-18 04:46 +0200
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-19 11:40 +0300
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-19 23:29 +0000
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-20 09:42 +0300
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-20 08:08 +0000
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-21 08:57 +0300
Re: 30 Years Of JavaScript Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-21 23:08 +0000
Re: 30 Years Of JavaScript Mikko <mikko.levanto@iki.fi> - 2026-07-22 09:39 +0300
Re: 30 Years Of JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-07-27 14:20 +0200
Re: 30 Years Of JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-07-27 14:19 +0200
Re: 30 Years Of JavaScript Jon Ribbens <jon+usenet@unequivocal.eu> - 2026-07-13 14:46 +0000
csiph-web