Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Although `~0` assumes twos-complement signed numbers. Which, well, is probably a safe assumption, but still.


All modern computers use twos-complement and modern languages like Rust require it. Not assuming twos-complement is a theoretical nitpick along the lines of not assuming a byte is 8 bits. Nobody does that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: