Fork me on GitHub
#clojure-dev
<
2016-05-25
>
cfleming07:05:44

Is there a reason that Clojure has separate monitor-enter and monitor-exit specials, and not a built-in locking special?

hiredman07:05:45

I know there has been discussion about replacing the locking macro with a call through a java utility class instead of using those special forms, because the androind art analyzer doesn't like the shape of the bytecode clojure emits

hiredman07:05:58

(enter and exit can end up in different methods)

cfleming08:05:45

Interesting, thanks

cfleming08:05:16

Looks like that’s been parked due to it being Android’s fault.

arrdem17:05:22

Correct AFAIK.

arohner19:05:56

Since spec is putting a lot of emphasis on namespaced keys, is there a plan to add support for namespaced key destructuring, in {:keys []} ?

ragge19:05:33

@arohner: that already exists:

user> (let [{:keys [a/x b/y]} {:a/x 42 :b/y "ehlo"}]
        [x y])
[42 "ehlo"]

ragge19:05:52

@arohner: there is however a proposal to improve it further: http://dev.clojure.org/jira/browse/CLJ-1919

arohner19:05:55

I swear I’ve seen errors with it before...

ragge19:05:15

it had some bugs in 1.7

Alex Miller (Clojure team)22:05:08

@ragge I am not aware of any open issues related to them (although I found some exotic corners when writing the CLJ-1919 patch and fixed them)