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

> Integer numbers are typically represented by the type Int, which represents a machine-size integer (usually 64 bits on modern computers).

I'm not a systems programmer, but I thought there was a consensus these days that this was a Bad Idea™? Are the benefits of marginally better performance on certain platforms really worth having your program break due to an overflow when you run it on a different platform?



Zig has both fixed size types and a native-pointer-sized type. I think it's the right approach, in general you need both.




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

Search: