Closed hoosierEE closed 5 years ago
I think you swapped hi
and hey
in the last two lines.
Terminology nitpick: lack of closures doesn't mean dynamic scoping. Dynamic scoping is when the callee can see variables from the caller's context. That's not the case in k. In (the original) k functions can see only local and global variables and nothing in between, so scoping is still lexical, albeit restricted.
Thanks for the clarification, I was indeed conflating the two concepts.
Playing with iKe it appears (to my delight!) to support lexically-scoped closures:
Is this a first for K implementations? I was under the impression that Whitney's K and Q implementations used dynamic scoping and did not support closures.