Implementing the recent changes to Varvara in Oquonie, I noticed how many single-purpose labels I used merely to hop over short lengths of code, enough that having ran out of ideas for names to called them, I would default to like &skip, &ok, or &continue. The solution was to create anonymous labels, and as to be capable of nesting them, I ended up inadvertently adding lambdas to Uxntal.
Just stumbled on "Adding Lambda Expressions to #Forth"
http://www.euroforth.org/ef06/lynas-stoddart06.pdf
Too little too late.
This entry was edited (1 year ago)
⛧ esoterik ⛧
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to ⛧ esoterik ⛧ • • •Oh! They've added support to lambdas too! Wonderful 😀
https://github.com/zzo38/uxn38/commit/feba063ba18b9af734bd791f137977713144405e
The implementation of the BUILD-STACK word in the paper linked above is about the same thing, word for word(except that we're building a symbols file) than the uxnasm/drifblim implementation.
https://git.sr.ht/~rabbits/drifblim/tree/main/item/src/drifblim.tal#L266
Implement uxntal lambdas. · zzo38/uxn38@feba063
GitHub