After self teaching myself BASIC and Pascal as a kid, Modula-2 was the language we first learnt at university in order to teach us programming fundamentals. It was a nice move from Pascal for me but I preferred Delphi.
Although the keywords in Modula-2 weren’t case sensitive and weren’t required to be in upper case, it was preferred (guidance from Niklaus Wirth) and that was just annoying.
pjmlp · 4h ago
Modula-2 didn't had OOP as standard feature, although some compilers did use Modula-3 classes as extension, like XDS.
Was this the case or something else?
Always looking to improve my knowledge on Wirthian languages.
junto · 4h ago
I think it’s more likely I’m misremembering. It is now over 30 years ago.
Next on the list at university was C++, so more than likely my brain is deliberately blocking out that language. :-)
emme · 3h ago
I started programming with Modula-2 and I really believe it was case sensitive. In fact I remember the book I used to learn it (Ogilvie) mentioning the case sensitiveness as a peculiarity of the language: "if case matters in natural languages, why programming languages should ignore it"
pjmlp · 1h ago
It is, as do all C derived languages.
After Pascal, all languages that Niklaus Wirth created were case sensitive.
Uppercase keywords are debatable as a style, however with good IDE tooling hardly an issue.
Similarly to BASIC and SQL, or spaces in ML languages and Python, don't use Notepad like editors for them, use something with autoformatter.
Pity that in Modula-2 case those products are long gone, and I doubt many would bother with a VSCode extension or something.
Although the keywords in Modula-2 weren’t case sensitive and weren’t required to be in upper case, it was preferred (guidance from Niklaus Wirth) and that was just annoying.
Was this the case or something else?
Always looking to improve my knowledge on Wirthian languages.
Next on the list at university was C++, so more than likely my brain is deliberately blocking out that language. :-)
After Pascal, all languages that Niklaus Wirth created were case sensitive.
Uppercase keywords are debatable as a style, however with good IDE tooling hardly an issue.
Similarly to BASIC and SQL, or spaces in ML languages and Python, don't use Notepad like editors for them, use something with autoformatter.
Pity that in Modula-2 case those products are long gone, and I doubt many would bother with a VSCode extension or something.