shux-lang / shux

3 stars 4 forks source link

Errors tank our compiler #37

Open j-hui opened 7 years ago

j-hui commented 7 years ago

Our compiler shouldn't just crash inexplicably and dump a log line numbers from generated files once it sees an error

We need to surround the appropriate code execution sections with try blocks

j-hui commented 7 years ago

http://www2.lib.uchicago.edu/keith/ocaml-class/exceptions.html

putting this here for myself

j-hui commented 7 years ago

i love how now i just indiscriminately throw assert falses now