Hacker News new | past | comments | ask | show | jobs | submit login

It change the semantic on the loop bound, and thus what the compiler can/cannot do when optimizing the code.

Using uint limits the optimizer...




Using int also limits the optimizer in some ways, for example division/modulo becomes more expensive.

Every time I see someone mention the optimization argument for signed integers I ask for examples and I've yet see a good one.




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

Search: