3 ms·
Maybe C just needs to provide a way to print/format any built in type without specifying it. They got stdc_popcount to work with any integer type (looks like fu
by Aardwolf 4y ago
Maybe C just needs to provide a way to print/format any built in type without specifying it. They got stdc_popcount to work with any integer type (looks like function overloading in C through macros), so can same be done for printing integers?
- teddyh 4y agoDon’t forget the other side of the coin; we also need to read a string into any integer type (while also detecting overflows).