[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generators (iterators) for Gnu Emacs
From: |
Stefan Monnier |
Subject: |
Re: Generators (iterators) for Gnu Emacs |
Date: |
Fri, 05 Dec 2014 09:40:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> No. Daniel's package https://github.com/dcolascione/elisp-generators.
> Do you have time to critique the code and make it an integral part of
> elisp? Thanks ;)
I haven't had time to look at it in detail, but it looks nice.
Things I noticed:
- Drop the use of (require 'cl).
- Use `declare' for indentation and edebug specs.
- Most importantly: clean up the namespace use. `yield' is probably OK
(tho the global definition should probably not override a previous
definition) but `next' needs to turn into something like `gen-next',
`do-iterator' should probably turn into `gen-do', cl-loop's
`iterating' should probably turn into something that includes
"generator" in its name, `lambda-generator' should maybe be renamed to
`gen-lambda', ...
Once that's fixed, I'd be happy to see it included in Emacs.
Stefan
- Generators (iterators) for Gnu Emacs, Michael Heerdegen, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Leo Liu, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Leo Liu, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/04
- Re: Generators (iterators) for Gnu Emacs, Leo Liu, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs,
Stefan Monnier <=
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Stephen J. Turnbull, 2014/12/06