Hacker News new | ask | show | jobs
by bell-cot 1640 days ago
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?
2 comments

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.

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.