I was reminded of Go and Forth :-)
It's not really Forth because in WASM, each block of code needs to have a statically determined stack effect. I wonder if there might be a nice Forth-like syntax for WASM, though?
It's not really Forth because in WASM, each block of code needs to have a statically determined stack effect. I wonder if there might be a nice Forth-like syntax for WASM, though?
Check out the section of the docs labeled "The stack": https://docs.factorcode.org/content/article-handbook-languag...
Note that, in particular, there is full support for stack-effect declarations and that there is a static static-effect checker.