jmoenig/Snap

where is run w/ continuation in 9.0.1?

Closed this issue · 6 comments

I didn't find the block
image

call/cc and run/cc have been deprecated in v9, they still work for existing projects, but for new ones we now have replaced them with true first-class continuations:

this continuation

You can use this continuation together with call and run pretty much exactly like you used to use call/cc and run/cc, here's an example for how to build the catch/throw control structure:

catch throw

Does that make sense to you?

It make sense for sure. Thank you for the explanation! Great piece of art!

Is "join input list" deprecated as well btw?

join works the same as before, you can drop a reporter on the arrow heads:

join_variadic

and it will turn the join block into join input list:

join_input_list

in v9 you can now tell whether a variadic input accepts reporter drops on the arrows for the variadic case if it displays the vertical ellipsis.

Thanks! It works! Will keep on digging

sure, and please don't hesitate to ask if there's anything that raises a question!