emacs-devel
[Top][All Lists]
Advanced

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

Re: A prototype for a binding based approach to proper namespaces


From: Dmitry Gutov
Subject: Re: A prototype for a binding based approach to proper namespaces
Date: Sat, 9 May 2020 21:55:05 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 09.05.2020 21:08, Helmut Eller wrote:

On 09.05.2020 10:38, Helmut Eller wrote:
Of course, to be useful it would need a be shorter name or even be a
reader macro like #'.

FWIW, Clojure tries to solve this problem by having ` return
fully-qualified symbols:
https://stackoverflow.com/questions/17800917/clojure-difference-between-apostrophe-and-backtick

' returns "unqualified ones", and can be used inside ` forms to create
"unqualified" elements in there.

Interesting.  It's certainly useful to be able to write down lists
etc. that contain many symbols.  In Emacs we would probably not change
the existing backquote, but instead use something new like #`.

I don't know. It could. I imagine the backward compatibility argument would not exactly apply, given that the change would only affect code using the new namespaces system.

It seems[1] that in Clojure the symbol is resolved at read-time.  I'm
not sure that that is better than resolving it at macroexpand-time or
compile-time.

Can't comment on that.

Helmut

[1] https://clojure.org/reference/reader#syntax-quote






reply via email to

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