On Fri, Nov 27, 2009 at 1:23 PM, John Harrop <jharrop...@gmail.com> wrote:

> On Fri, Nov 27, 2009 at 12:46 PM, Richard Newman <holyg...@gmail.com>wrote:
>
>> > Maybe this ought to be fixed; i.e., if the reader sees #^{meta} 'foo
>> > it applies the metadata to foo first, then quotes it, resulting in
>> > the same thing as (quote #^{meta} foo).
>>
>> Why introduce that special case, when you can simply do the second?
>>
>> I don't support the view that it's OK for programmers to not know what
>> they're doing, which in this case means knowing that 'foo reads as
>> (quote foo).
>
>
> I'm not advocating in favor of programmers not knowing what they're doing.
> I'm advocating in favor of avoiding as many subtle gotchas as possible.
>

Interestingly, you can do what I suggested manually:

user=> (meta '#^{:foo 1}foo)
{:foo 1}

It's a bit ugly, but it works.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to