2 ms·
Not really. Look at the standard template library. It’s not really using classes with inheritance. It’s using non-member functions, often with iterators. Ironi
by chris_wot 3y ago
Not really. Look at the standard template library. It’s not really using classes with inheritance. It’s using non-member functions, often with iterators.
Ironically I’ve just learned, however, that lambdas are actually anonymous classes! I’m currently up to the bit in yhe book I referred to before that explains how to do currying in C++.
The more I read, the more I think I’m working against the code base than I am against C++. I’m actually very curious how ranges work, something the book talks about later.
- chris_wot 3y agoSorry, not STL, I meant the standard C++ library. Edit: send an email to news@ycombinator.com