[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Namespace macros (was: Generators (iterators) for Gnu Emacs)
From: |
Helmut Eller |
Subject: |
Namespace macros (was: Generators (iterators) for Gnu Emacs) |
Date: |
Sun, 07 Dec 2014 18:40:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
On Sun, Dec 07 2014, Ted Zlatanov wrote:
> I don't know Stefan's motives, but would love to see actual namespaces
> in Emacs Lisp. The closest thing I've seen is
> https://github.com/Bruce-Connor/names which can be installed from the
> GNU ELPA. Perhaps that's an actual problem we keep ignoring because
> it's easy to hack around it "just that once."
Thanks for the pointer.
I also wrote a namespace macro: https://github.com/ellerh/namespace.el
Another one I know is: https://github.com/chrisbarrett/elisp-namespaces
The experience with my own namespace macro was that it works fairly well
when writing a library from scratch, in particular when the code
consists mostly of functions and almost no quoted symbols. If it works
well, then the code looks a lot neater with namespaces.
But it was also rather useless when I tried it to use it with the SLIME
codebase. The existing code uses prefixes in inconsistent ways and
quoted symbols are needed surprisingly often.
This may also be a bit of a chicken-and-egg problem: if the existing
code can't be used with those namespace macros than nobody will use
namespaces, but as soon as some important libraries can be used with
namespaces it pays of to use namespaces and we get more usable
libraries.
Helmut
- Re: Generators (iterators) for Gnu Emacs, (continued)
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/05
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/06
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/06
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/06
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Ted Zlatanov, 2014/12/07
- Namespace macros (was: Generators (iterators) for Gnu Emacs),
Helmut Eller <=
- Re: Namespace macros (was: Generators (iterators) for Gnu Emacs), Artur Malabarba, 2014/12/07
- Re: Namespace macros, Helmut Eller, 2014/12/08
- Re: Namespace macros, Artur Malabarba, 2014/12/08
- Re: Namespace macros, Helmut Eller, 2014/12/08
- Re: Namespace macros, Artur Malabarba, 2014/12/08
- Re: Namespace macros, Dmitry Gutov, 2014/12/08
- Re: Namespace macros, Artur Malabarba, 2014/12/08
- Re: Namespace macros, Dmitry Gutov, 2014/12/08
- Re: Namespace macros, Helmut Eller, 2014/12/08
- Re: Namespace macros, Richard Stallman, 2014/12/08