back

by zorked·15y ago·view on hn ↗
Well, I think there is some impedance mismatch here. He kind-of suggested resetting the stack "to remove left-over items". He also mentioned something about forgetting to pop an item. These kinds of comments are really... weird. I mean, what is Lua supposed to do if you forget to pop something?

This is an example where a valid personal opinion ("I don't like stack-based apis") crosses the line into something else ("Lua is defective").

1 comments
Indeed. My perspective is that if you can grok Forth(which is unprotected stacks all the way down) embedding Lua should be cake, especially if you aren't planning on doing something fancy.

And realistically...how often is it going to come up that you need the embedding to pass around more than a few numbers and strings?