3 ms·
Very cool - haven't come across a fun new language for a while. When thinking about iterators, think about coroutines a la Lua. Otherwise you're going to get yi
by stevedonovan 10y ago
Very cool - haven't come across a fun new language for a while. When thinking about iterators, think about coroutines a la Lua. Otherwise you're going to get yield-with-serious-restrictions.
- DanWaterworth 10y agoWhen I was adding for each style loops to my language, plastic [1], I just opted for 'you can iterate over any expression that produces a coroutine'. It shouldn't cause any problems a tracing jit can't fix and it's super convenient. [1] https://github.com/DanielWaterworth/plastic https://github.com/DanielWaterworth/plastic