|
|
|
|
|
by raverbashing
1581 days ago
|
|
> As someone with 20 years of C++ experience... I really don't understand the hatred for OO programming Well, where should I begin: std::cout << "Hello world";
Is just a nice way of doing things...As the other commenter said, it's not so much OO, but more GoF and how the 2000's OO went. Please tell me why any basic library adds 3 or 4 levels of inheritance just to do something basic like vector or array. "Oh but this is to make things more generic" and yet nobody uses all that generic stuff. STL is often replaced by more "serious" users. C++ (and Java) are 2nd systems syndrome gone to 11 I've just taken a look at the Vector implementation at my current system and it's an exercise in frustration. Meanwhile I can understand most of this https://doc.rust-lang.org/src/alloc/vec/mod.rs.html#400 |
|
Where is the level of indirection in std::vector implementations? With templates, c++ really doesn’t use virtual dispatch all that much.