LightAndLight / ipso

A functional scripting language.
https://ipso.dev
17 stars 1 forks source link

Runtime errors appear as Rust panics #187

Open LightAndLight opened 2 years ago

LightAndLight commented 2 years ago

Fallible operations like subtraction (underflow) and division (divide by zero) make Rust panic. Ipso needs to handle these failures and report its own stack trace.

Without this, users have no way of knowing which part of their program caused the error.

Panics that should be errors-with-source-locations: