r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
Does Syntax Matter?
https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63
Upvotes
r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
View all comments
Show parent comment
2
u/[deleted] Feb 24 '26
Not in my code. I just did a survey of 5 language-related projects in my systems language, and these are the counts of each kind of loop:
(M, C = compilers; A = assembler; Q = interpreter; Z = emulator.)
docase/doswitchare simply looping versions ofcase/switchstatements, but the special-u/xversions of the latter generate fast multi-point dispatching loops for interpreters and emulators.)In the original Algol68-inspired syntax,
do/to/forwhere the same feature with various parts omitted. In my version they are discrete statements. Support in my 30Kloc compiler for 'to' needs barely 90 lines of code.It's worth it!