Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that the stack comments aren't actually comments in Factor - they're part of the function definition and are mandatory. The compiler will do a simple check to ensure that all of your stack inputs and outputs match up for each function call.


We made stack effects mandatory for most definitions as it appeared an area of frustration with new Factor programmers.

However, we have a stack checker that still supports optional stack effects if you yearn for the good ol' days:

https://github.com/slavapestov/factor/issues/887




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: