« first day (3571 days earlier)      last day (209 days later) » 

12:46 AM
>> obj: make object! [subobj: make object! [x: 10]]

>> get-obj: func [] [obj]

>> g: generator [yield (get-obj elide yield "Hello!")/(yield 'subobj)/x]

>> g
== "Hello!"

>> g
== subobj

>> g
== 10

>> g
; null
 
 
12 hours later…
12:28 PM
Hm. I had a thought on functions that are variadic on their left...which may be something I've thought of before, but. What if they let you look one unit to the left, and if you do not take the thing on the left, it will get control when your function ends?
This would allow me to be a variadic function which peeked left, saw a SET-WORD!, read its value, and then did not consume it. And then the left SET-WORD! might resume its evaluation as if the value the ME evaluated to had been there all along. :-/ This form of "peek left" might be useful for other things--I don't know.
 
 
1 hour later…
1:46 PM
posted on August 10, 2020 by rip_dingers

[Reddit] Most Starred Programming Languages on GitHub (2014-2020)

 

« first day (3571 days earlier)      last day (209 days later) »