3 ms·
I once read through the entire Stroustrup C++ book and figured in one case, there is absolutely no way to make this work except for a secret, hidden variable in
by MarkusWandel 3y ago
I once read through the entire Stroustrup C++ book and figured in one case, there is absolutely no way to make this work except for a secret, hidden variable in the class. Did a test compile and: There it was! OK, I get C++, done. Then I saw actual C++ programs. Whoa, how do you index into an array using a string? You don't of course, you overload the [ ] operator.
Reading about Lua when it was newer I could foresee the same thing happening on steroids. Yes, the language itself is simple but what you can do with it - emulate almost any construct in any language - promises confusion. When it comes to readable code, sometimes "less is more" in terms of langauge features.
- notacoward 3y ago> OK, I get C++, done. > ... > When it comes to readable code, sometimes "less is more" in terms of langauge features. Please tell me that is meant as satire. There is no sane way to look at C++ and Lua and decide "less is more" would favor C++.