On Wed, Jan 27, 2010 at 3:29 PM, Chouser wrote:
> On Wed, Jan 27, 2010 at 2:56 PM, AlexK
> wrote:
>>
>> PersistentLists and PersistentHashSets work, but other things fail.
>>
>> I think i know the reason:
>> Compiler.emitValue() (Compiler.java:3741-3879) is for initializing
>> constant expression
On Wed, Jan 27, 2010 at 2:56 PM, AlexK
wrote:
>
> PersistentLists and PersistentHashSets work, but other things fail.
>
> I think i know the reason:
> Compiler.emitValue() (Compiler.java:3741-3879) is for initializing
> constant expressions, but it only adds metadata, if the value is an
> instance
user> (set! *print-meta* true)
true
user> '#^a symbol
symbol
user> '#^a (list)
#^{:line 1, :tag a} (list)
user> '#^a [vector]
[vector]
user> '#^a {:a :map}
{:a :map}
user> '#^a #{:a :set}
#^a #{:a :set}
user> '#^{:meta :map} symbol
symbol
user> '#^{:meta :map} (list)
#^{:line 1, :meta :map} (list)
On Mon, Jan 25, 2010 at 10:52 PM, Zach Tellman wrote:
> At the REPL, in 1.2.0-master
>
>> (meta (second '(a #^b c)))
> nil
>
> In 1.1.0-new (and I believe all previous versions)
>
>> (meta (second '(a #^b c)))
> {:tag b}
>
> Is this intentional, or a bug? Is the new type hint syntax being
> intro
I've double-checked I have the latest from github, cleaned and
recompiled, and I'm still getting the same results.
user=> [*clojure-version* (meta (second '(a #^b c)))]
[{:interim true, :major 1, :minor 2, :incremental 0, :qualifier
"master"} nil]
Does anyone have an idea what's going on here?
O
Works for me.
user> [*clojure-version* (meta (second '(a #^b c)))]
[{:interim true, :major 1, :minor 2, :incremental 0, :qualifier
"master"} {:tag b}]
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@google