Toot

Written by yosh on 2025-01-24 at 00:45

Wait, so if for..in is the “consume” part of the iteration effect, I think break maps to a logical return, and continue maps to the next iteration.

I’ve seen people talk about “break with value” before - e.g. the loop exiting with a value. But I don’t think I’ve seen people talk about “continue with value before”.

The latter seems like it would rather neatly map to coroutines, wouldn’t it? E.g. continue 12u32; to resume the coroutine with a u32 could work?

=> More informations about this toot | View the thread | More toots from yosh@toot.yosh.is

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113880569009860767
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
219.639408 milliseconds
Gemini-to-HTML Time
0.487674 milliseconds

This content has been proxied by September (3851b).