4 ms·
Since python has had generators that "are just functions that yield, without special annotations" like, forever, I was surprised when vanilla JS decided generat
by jessaustin 10y ago
Since python has had generators that "are just functions that yield, without special annotations" like, forever, I was surprised when vanilla JS decided generators need more punctuation.
- kenOfYugen 10y agoThey had to, since changes cannot break backwards compatibility with the legacy web.
- jessaustin 10y agoThat seems plausible, but what would "yield" have meant before?
- WorldMaker 10y agoIt might have been a function or variable name. In finance and farming domains it's a somewhat likely function/variable name.