Letting RegExp method return something iterable?

Brendan Eich brendan at mozilla.com
Thu Aug 29 00:47:13 PDT 2013


Axel Rauschmayer wrote:
> – execIter()

Not bad, I think better than execAll, which does not connote return of 
an iterator, but which does perversely suggest returning an array of all 
exec results.

> `execAll()` may not be that bad. It’s not pretty, but it’s fairly easy 
> to guess what it does (*if* one know what the normal `exec()` does).

(If only!)

/be


More information about the es-discuss mailing list