[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generator Examples
From: |
raman |
Subject: |
Re: Generator Examples |
Date: |
Sat, 24 Sep 2016 17:29:49 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
I'm familiar with generators as a concept across multiple languages --
but I still found the elisp docs confusing:-)
We explicitly say the interface is similar to that in languages like
Python -- which is why i coded up the Fibonacci example.
The cl-psetq is the right idiom here in that sense -- if you use plain
setq, you'd have to use a temporary variable?
Thanks for the coroutine example, again that would do well in the
manual -- there is a reference to coroutines either in the manual or in
code comments in generators.el that is presently "intriguing".
Finally, I still dont understand the nested call to iter-yield in the
manual and if it is correct, it would be good to have it better
explained there.
--