Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jessaustin
· 9y ago · 0 comments
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.
Comments
[–]
kenOfYugen
9y ago
They had to, since changes cannot break backwards compatibility with the legacy web.
[–]
jessaustin
OP
9y ago
That seems plausible, but what would "yield" have meant before?
[–]
WorldMaker
9y ago
It might have been a function or variable name. In finance and farming domains it's a somewhat likely function/variable name.