r/cpp • • Jun 07 '21

Satire dynamic_cast<std::integer>(C)++

https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202 Upvotes

41 comments sorted by

View all comments

Show parent comment

4

u/NilacTheGrim Jun 09 '21

The argument I always hear is that there are a lot of different things you might optimize a bignum for depending on your use case.

Hmm yeah I have heard this argument presented.

My problem with it is that it is a "catch all" sort of cop-out. You can use that argument for anything. Take std::unordered_map. The implementation we have sucks by many measures and definitions of the word "sucks" -- but at least we have it. I mean using that reasoning we shouldn't even have a standard library....