3 ms·
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
by csandreasen 12y ago
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.
- mrjbq7 12y agoWe 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 https://github.com/slavapestov/factor/issues/887