jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Should arthimetic operations wrap? #78

Open jmeaster30 opened 11 months ago

jmeaster30 commented 11 months ago

Rust panics on unchecked arithmetic operations that overflow. I overrode that behavior with std::num::Wrapping.

Should the default behavior actually be wrapping though?