Hacker News new | ask | show | jobs
by q3k 2462 days ago
> What would be the alternative in those places?

Fix the damn language.

1 comments

As in, adding more features to C++? And then people cry about how complex C++ is.
Stop worrying about 9-bit bytes, only logical shift right for signed integers, ones-complement and sign-bit integers, etc and define this stuff in the standard. PDP-11 was a long time ago. C++20 is heading in the right direction with defining twos-complement. The next good step would be declaring signed overflow as wrapping (eg -fwrapv)