3 ms·
> Pretty sure it will not. Nothing is lazy in JS by default: It really depends on the logic written. You can solve the same thing in many different ways, the w
by steelbrain 6y ago
> Pretty sure it will not. Nothing is lazy in JS by default:
It really depends on the logic written. You can solve the same thing in many different ways, the way chosen by the author doesn't seem to be a lazy one.
Not the language's fault. It's simply doing what is asked of it.
Eg, see https://news.ycombinator.com/item?id=24265507 https://news.ycombinator.com/item?id=24265507
- k__ 6y agoYes, I thought so too. If they spread anyway, they could leave the generator away in the first place.