FenderLang / Fender

A functional scripting language, intended for string manipulation and general scripting on the command line
MIT License
13 stars 0 forks source link

Make Operations panic-safe #13

Open boxbeam opened 1 year ago

boxbeam commented 1 year ago

Currently multiplication, addition and subtraction will panic on overflow, division and modulus will panic on divide by zero. I believe this is only true for integer types but have not tested. Unchecked operations are currently unstable so we'll need to used the checked operations and return an error on fail.