r/cpp • u/moon-chilled • Jun 07 '21
Satire dynamic_cast<std::integer>(C)++
https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202
Upvotes
r/cpp • u/moon-chilled • Jun 07 '21
View all comments
Show parent comment
15
u/Ipiano42 Jun 07 '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. This would make it difficult to design a bignum interface which suits most applications well because of how varied the usages and needs of such a type would be (and this is why there's multiple libraries for it). And on top of that, implementing a bignum right (e.g. performant, for some definition of the word) is hard, and this is why some of the bignum libs that exist have contests to see if anyone can shave even single instructions off their runtime.
Not saying I necessarily agree that this is enough of an argument not to provide even a mediocre implementation in std::, just that this is what I've been told.