←back to thread

71 points susam | 3 comments | | HN request time: 0.639s | source
1. Viliam1234 ◴[] No.43676148[source]
> Pascal, in common with most other Algol-inspired languages, uses the semicolon as a statement separator rather than a terminator (as it is in PL/I and C). As a result one must have a reasonably sophisticated notion of what a statement is to put semicolons in properly.

I wonder how the non-programmers succeed to write commas correctly, because those follow the same logic: e.g. "red, green, blue". In author's opinion, I guess it should be "red, green, blue," instead.

replies(2): >>43676514 #>>43711428 #
2. pdw ◴[] No.43676514[source]
Have you ever used a Pascal compiler that's strict about this? It's surprisingly annoying even today. Now imagine it's 1981 and you're editing your programs with a line editor. In C code, you can freely swap lines around. If you try the same in Pascal code, you'll spend a lot of time fixing up semicolons.
3. CRConrad ◴[] No.43711428[source]
> I wonder how the non-programmers succeed to write commas correctly

Usually they don't.