Fork me on GitHub
#clojure-dev
<
2017-12-08
>
andrewmcveigh14:12:48

Is this expected behaviour? Seems a bit unintuitive as it behaves different from the {} map reader.

user=> (defrecord Expr [id])
user.Expr
user=> (let [id 10] #user.Expr{:id id})
#user.Expr{:id id}
user=> 

andrewmcveigh14:12:51

It's present in 1.8 and the latest 1.9-RC2

bronsa14:12:11

>"For record reader forms, the keys and values must remain as constants as their semantics require that the readable form coincide with the evalable form."

andrewmcveigh14:12:52

Ok, fair enough... thanks

hiredman20:12:13

I am generating a clojure jar using the new standalone stuff (https://dev.clojure.org/jira/browse/CLJ-2276) and java -jar the-generated-jar is throwing an error about not being able to find spec

hiredman20:12:58

oh, pardon me, it is all going in to ./clojure.jar and not something in target/

Alex Miller (Clojure team)20:12:50

yup (as it has always done)

bronsa21:12:24

I was a bit surprised that this wasn't already the case

bronsa21:12:53

it seems like there's no way to set! a primitive instance/static field ATM w/o incurring into unnecessary boxing/unboxing