Re:Snap! 5 is here
by toontalk on Saturday June 29, 2019 @07:38AM
(#20312012)
Scratch 3 does not enable one to define new functions only new commands. Snap! user-defined functions are first-class - they can be used to define higher-order functions.
[ Parent
| on HN ]
Re:Snap! 5 is here
by DonHopkins on Saturday June 29, 2019 @08:01AM
(#20312091)
Here's the elegant Snap! visual Y Combinator:
Visual Lambda: Note how the gray block after the "report", shrink-wrapped around the "call (fn) with inputs (fn) []", is a visual "lambda". It looks like a "gasket" or "baggie" that insulates the code inside from being immediately evaluated, returning a closure instead.