2 ms·
doesn't look very "modern" at all This is the sort of thing that turns me off C++ completely. It used to be a pragmatic extension to C, now it's about trend-ch
by userbinator 8y ago
doesn't look very "modern" at all
This is the sort of thing that turns me off C++ completely. It used to be a pragmatic extension to C, now it's about trend-chasing.
The code could be simpler (the extra "index" which is essentially a state variable is odd), but IMHO it is otherwise perfectly fine. Useless superficial criticism like this is just another form of cargo-culting.
- jcelerier 8y ago> It used to be a pragmatic extension to C, now it's about trend-chasing. no, it's about maximizing performance, because C++ libs are what countless software build upon. Maybe someone will want to use this to display a 4*4k mural screen with 2000000 of those displayed and changing in real-time. Just using a <map> instead of a hash-container (there's a compile-time one just on top of HN right now which would fit the bill perfectly since these are known at compile time) is already a fairly big smell.