@neauoire Oh that's really cool! Reminds me of the type checking I wanted to implement for a functional stack based programming language. For each function you'd have to write its input and output stack. Though this one actually did have multiple types such as ints, floats and chars (i haven't decided yet which ones). I was actually thinking of compiling it to uxn bytecode! Maybe I finish it one day.
@vanja You might enjoy these if you're still considering it:
https://prl.khoury.northeastern.edu/blog/static/stack-languages-talk-notes.pdf
https://www2.ccs.neu.edu/racket/pubs/dissertation-kleffner.pdf
http://joypy.osdn.io/notebooks/Types.html
If you decide to target Uxn, lemme know if you need a hand, I'll be happy to help. :)