« first day (3771 days earlier)      last day (9 days later) » 

4:35 AM
posted on February 26, 2021 by hostilefork

I've added LET into PARSE. So you can dynamically make variables to capture: >> var: <untouched> >> parse "a" [let var: skip, (print ["inside PARSE, var is" mold var])] inside PARSE, var is #a == "a" >> var == <untouched> ; pretty cool... So it's kind of a synonym for SET, except it declares the variable such that it's only in the "wave" of rule

 
 
3 hours later…
8:05 AM
posted on February 26, 2021 by hostilefork

There's a situation I run into often where I'm looking at long bunches of code where a value is being calculated to be used in a long expression, like THING and OTHER-THING below: result: case [ ...something... [ if condition [ ...bunch of code... thing ] else [ ...bunch of code... other-thing ] ]

 
8:59 AM
posted on February 26, 2021 by hostilefork

So I'd gone ahead with the implementation of virtual binding and LET, because I don't see any real future for the language without it...at least not for the kinds of distinguishing features that I think would make it notable. But it means we're creating a lot of garbage. I've brought up pathological cases, like: count-up x 1000000 [ let y: x + 1 print ["Y is" y] ] Creatin

 

« first day (3771 days earlier)      last day (9 days later) »