News for hackers. Stuff that matters.
Re:Teaching D from Scratch: Is it a viable first language? by bell-cot on Wednesday December 29, 2021 @05:15PM (#29730787)
Ah...isn't D close enough to being a superset of C that it's perfectly usable as a non-OOP language, in educational contexts?
Re:Teaching D from Scratch: Is it a viable first language? by WalterBright on Wednesday December 29, 2021 @06:24PM (#29731461)
Yes, it is. And you don't have to suffer under a preprocessor!

(It's impractical to program in C without using the preprocessor, and the preprocessor requires use of a lot of very outdated programming practices.)

D can be used in "BetterC" mode, where it operates as what C could be with modern sensibilities.

Re:Teaching D from Scratch: Is it a viable first language? by alphaglosined on Wednesday December 29, 2021 @05:55PM (#29731212)
Unless you are touching something like threads or exceptions, you probably won't use classes unless it expresses your data best.

So yes, perfectly usable without OOP or classes.