2 ms·
I find it funny that people that know almost nothing about C++ talk about it so much. Function pointers are not the only way to treat functions as values, as is
by dxuh 3y ago
I find it funny that people that know almost nothing about C++ talk about it so much. Function pointers are not the only way to treat functions as values, as is implied in the article. Lambdas exist and have existed in 2013 as well (and are nowadays the canonical way to have something like first-class functions).
And what does this mean?
Quick: off the top of your head, what makes JavaScript an object-oriented language?
If you thought “what? it’s not!” then there is no hope for you and you should go back to C++.
Ironically it's the C++ programmers that have pretty much collectively understood that classes are for maintaining invariants, which this person is almost about to understand in this article (I hope they did by now).