zetah11 / zippy

a smol functional/imperative programming language
MIT License
2 stars 0 forks source link

because for context in messages #29

Open zetah11 opened 1 year ago

zetah11 commented 1 year ago

The type checker has a nice little Because thing that gets passed around as a way of reifying why particular constraints or decisions were made. It isn't really used at the moment, but it'd maybe be useful to have a with_context() method on the message adder thingy for more useful error messages