News for hackers. Stuff that matters.
Re:Lilith and Modula-2 by pjmlp on Sunday May 04, 2025 @01:08PM (#43887927)
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.

Re:Lilith and Modula-2 by junto on Sunday May 04, 2025 @01:10PM (#43887945)
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. :-)

Re:Lilith and Modula-2 by emme on Sunday May 04, 2025 @02:08PM (#43888323)
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"
Re:Lilith and Modula-2 by pjmlp on Sunday May 04, 2025 @03:57PM (#43889104)
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.

Re:Lilith and Modula-2 by trealira on Monday May 05, 2025 @09:35AM (#43894976)
There is a VSCode extension for syntax highlighting in Modula-2: https://marketplace.visualstudio.com/items?itemName=redstar....
Re:Lilith and Modula-2 by pjmlp on Monday May 05, 2025 @09:51AM (#43895127)
Yes, I guess it could be a starting point for automatic formating as well.