Hacker News new | ask | show | jobs
by jabot 3002 days ago
The "drop" is not a statement terminator or separator.

There is a stack. You push values on the stack, then you call a function. The function takes its arguments off the stack, and pushes the return value(s) on the stack.

If you do not need the return value (which seems to be the case in your example) you ignore it by just removing it from the stack.

That's what the drop is for.

1 comments

I know. De facto it's for separating parts of the computation ("statements").