twtxt

Timeline for https://eapl.me/twtxt.txt

🔄 Refresh timeline

👨‍💻 Login

Following: 16

tkanos https://twtxt.net/user/tkanos/twtxt.txt Remove

eaplme https://eapl.me/twtxt.txt Remove

eaplmx https://eapl.mx/twtxt.txt Remove

lyse https://lyse.isobeef.org/twtxt.txt Remove

prologic https://twtxt.net/user/prologic/twtxt.txt Remove

rrraksamam https://twtxt.net/user/rrraksamam/twtxt.txt Remove

darch https://neotxt.dk/user/darch/twtxt.txt Remove

shreyan https://twtxt.net/user/shreyan/twtxt.txt Remove

movq https://www.uninformativ.de/twtxt.txt Remove

bender https://twtxt.net/user/bender/twtxt.txt Remove

stigatle https://yarn.stigatle.no/user/stigatle/twtxt.txt Remove

darch http://darch.dk/twtxt.txt Remove

xuu https://txt.sour.is/user/xuu/twtxt.txt Remove

jason https://jasonsanta.xyz/twtxt.txt Remove

mckinley https://twtxt.net/user/mckinley/twtxt.txt Remove

eapl-mes-7-daily-links https://feeds.twtxt.net/eapl-mes-7-daily-links/twtxt.txt Remove


xuu
Go 1.22.0 introduces a new experiment for range functions. Have you tried them out? What do you think it can make easier to accomplish?


4 months ago
💬 Reply


xuu
Reply to #3c2i2ia
The range function can signal when to stop running by returning false from the yield function.

4 months ago
💬 Reply


xuu
Reply to #3c2i2ia
the function can yield two values to include an index.

4 months ago
💬 Reply


lyse
Reply to #3c2i2ia
@xuu Oh, I wasn't aware of this! Thanks for bringing it to my attention.

I do like that they move away from one shared variable per loop to an own one per iteration. That makes sooo much more sense. I don't hit that often, but it happened a few times in the past and getting this figured out is not the easiest thing in the world.

I have to read up on the yield functions. From your examples I fear iterators would have been more useful. Let's see.
4 months ago
💬 Reply


lyse
Reply to #3c2i2ia
@xuu These are indeed iterators. Very weird syntax, though.
4 months ago
💬 Reply


xuu
Reply to #3c2i2ia
Things can get very interesting when we add the iter.Pull function in the mix. It works like pythons yield from.


4 months ago
💬 Reply


⏭️ Next