500
Hilarious
(lemmy.ml)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
lol that doesn't work either tho. it yields the string once and then is done. you still need a loop inside
You're right! That's actually a really cool point about Generator functions too, them having while(true) loops is very unproblematic :D
I'm correcting myself to:
function* sorry() { while(true){ yield "I'm sorry"; } }