3 ms·
It's kinda unrealistic to endow a Forth-like syntax with things like types and pre-determined stack effects. You end up with something not too different from th
by zozbot234 7y ago
It's kinda unrealistic to endow a Forth-like syntax with things like types and pre-determined stack effects. You end up with something not too different from the usual lambda syntax aside from postfix application, which in this context would simply be De Bruijn notation for lambda-like terms.
- brandonbloom 7y agoI think Factor is an existence proof that you're mistaken about this. Check out the section of the docs labeled "The stack": https://docs.factorcode.org/content/article-handbook-language-reference.html 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.