[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generators (iterators) for Gnu Emacs

From: Stephen J. Turnbull
Subject: Re: Generators (iterators) for Gnu Emacs
Date: Sat, 06 Dec 2014 18:38:51 +0900

Daniel Colascione writes:
 > On 12/05/2014 01:32 PM, Stefan Monnier wrote:

 > > The alternative I was thinking was to return a unique value, as in:
 > > 
 > >    (defvar gen-eog (make-symbol "¬°end-of-generator!"))
 > >    (defun gen-eog-p (x) (eq x gen-oeg))
 > > 
 > Right. That's the approach I don't like: now there's a value you
 > can't enumerate. What if you wanted to enumerate, say, the values
 > of all symbols?

The existence of `make-symbol' already means you can't do that.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]