3 ms·
> Now that Go has yield, you can avoid using channels even more. I’m very confused by this statement. To my knowledge, and after a good 5 minutes search, go do
by gouggoug 3y ago
> Now that Go has yield, you can avoid using channels even more.
I’m very confused by this statement. To my knowledge, and after a good 5 minutes search, go does not, in fact, have yield.
Almost looks like an AI hallucination.
edit: the post itself is tagged with “ai” while its content doesn’t mention AI at all. To me this gives credit to my theory this is an AI hallucination and this post was in part or totally generated by AI. While I’m amazed by and excited about AI, this kind of generated content makes me worried it really will contribute to the fast enshittification of the Internet.
- kmstout 3y agoThe other post [0] tagged as "ai" doesn't either, and they're both [1] dated yesterday. --- [0] https://breadchris.com/thinkies/a-very-b-movie-plot/ https://breadchris.com/thinkies/a-very-b-movie-plot/ [1] https://breadchris.com/tags/ai/ https://breadchris.com/tags/ai/
- t8sr 3y agoThere's an experimental feature in Go that lets you write python-like generators that work with range() and the callback is called `yield`. Here's some details: https://go.dev/wiki/RangefuncExperiment https://go.dev/wiki/RangefuncExperiment That's probably what the post is talking about. (I personally don't love this change, but now that it's clear Go 2.0 won't happen, it seems like some of the more outlandish ideas are making it into Go 1.x. Ah well.)
- gouggoug 3y agoInteresting, I wasn’t aware of this experimental feature. I still think the post was AI generated. Reason being that “now that go has yield” implies this is an actual available feature of go. It’s not. And I’d find it very surprising someone would refer to an experimental feature without mentioning it’s experimental.
- Sesse__ 3y agoExplains why I found it so incredibly faux-deep…