#iterators

[ follow ]
#ecmascript-2025
fromNedbatchelder
1 week ago

2048: iterators and iterables

Using range() allows for the creation of reusable iterables, while reversed() creates a non-reusable iterator, leading to potential iteration issues in nested loops.
fromAlex MacArthur
2 months ago

I think the ergonomics of generators is growing on me.

The new JavaScript syntactic sugar introduced in recent years, like arrow functions and template literals, addresses many real pain points, enhancing programming efficiency.
React
[ Load more ]