logoalt Hacker News

leecommamichaelyesterday at 11:54 PM0 repliesview on HN

https://odin-lang.org/docs/overview/#integer-overflow

> For signed integers, the operations +, -, *, /, and << may legally overflow and the resulting value exists and is deterministically defined by the signed integer representation. Overflow does not cause a runtime panic. A compiler may not optimize code under the assumption that overflow does not occur. For instance, x < x+1 may not be assumed to be always true.