3 ms·
Wirth has some valid points. And yet, reading that reminded me of why I hate Wirth-designed languages so much. Wirth says, "Here's the one right way to do it,
by AnimalMuppet 9y ago
Wirth has some valid points. And yet, reading that reminded me of why I hate Wirth-designed languages so much.
Wirth says, "Here's the one right way to do it, and the language will not permit you to do otherwise." He even brags in this paper that Oberon's ability to write everything (except the storage manager and device drivers) without using language loopholes is "the most significant progress in language design over 40 years".
C++, by contrast, gives you the preferred way to do things, but also gives you the escape hatch if you need it. And Stroustrup, writing the C++ book, says that there is no one right way to program, but "here is an approach that has worked for some people."
I prefer Stroustrup's humbler and less dictatorial approach. I've been trapped by Wirth's idea of "the one right way" before, and it's hard to get out of. You have to fight the language to do what you need to do, because the language doesn't think you should be able to do it. And of course the better the language is at stopping you from doing what it thinks you shouldn't do, the harder it makes it when you actually need to do one of those things.