coconut icon indicating copy to clipboard operation
coconut copied to clipboard

`where` with final result at end

Open evhub opened this issue 10 months ago • 0 comments

Possible syntaxes:

out = where:
    x1 = a + b + c
    x2 = x + y + z
    x1 + x2

out = do:
    x1 = a + b + c
    x2 = x + y + z
    x1 + x2

Which should compile to the equivalent of:

out = x1 + x2 where:
    x1 = a + b + c
    x2 = x + y + z

evhub avatar Mar 04 '25 09:03 evhub