emacs-devel
[Top][All Lists]
Advanced

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

Re: Generators (iterators) for Gnu Emacs


From: Nic Ferrier
Subject: Re: Generators (iterators) for Gnu Emacs
Date: Sun, 07 Dec 2014 21:26:05 +0000

Stefan Monnier <address@hidden> writes:

>> So agree to add some more core things to make the problem easier.
>
> I think I'd be willing to add Objects, indeed.  At least the
> completion-tables scream "make me an object".
>
>> A with-symbol for example.
>
> I don't know what `with-symbol' you're referring to.

It's just a simple symbol-let, we discussed it before here I think. An
alternative to a name system is to define a namespace with a macro:

(defmacro my-package (&rest body)
  (symbol-macrolet ((foo my-package--foo)
                     (bar my-package--bar))
       ,@body))

But that isn't exactly a friendly pattern is it?


Nic



reply via email to

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