Fork me on GitHub
#cursive
<
2016-08-19
>
kenny18:08:55

@cfleming bar is marked as cannot be resolved in this example:

(let [{:keys [foo/bar]
       :or   {bar 1}} {}]
  bar)
Previously you could get around this by doing:
(let [{:keys [foo/bar]
       :or   {foo/bar [1]}} {}]
  bar)
However that behavior was accidental and broken. It is removed from clojure 1.9.0. Per Alex Miller: > the keys of the :or should always be the symbols to bind locally (not keywords or qualified symbols)

Alex Miller (Clojure team)18:08:58

it’s unfortunate that this is version dependent, but it is. I consider supplying :or defaults for namespaced keys to be broken prior to 1.9.0-alpha8.

cfleming19:08:27

@kenny: Can you file an issue for that? I’ll fix it for the next release as part of updating some things for 1.9.0.

cfleming19:08:05

Awesome, thanks!

chrisjd20:08:08

@cfleming Just wanted to say a big thanks for making Cursive as great as it is. It’s a pleasure to use such a polished tool that the author obviously, genuinely cares about.

curlyfry23:08:07

Very much agreed!

hlship23:08:02

Have an odd thing … in one of my projects, I don’t get pass/fail test markers on my functions. In others, it works.

hlship23:08:41

Oh, that’s right. It’s the difference between launching using Leiningen, and launching using JVM process, right?

hlship23:08:54

Mostly, I launch in JVM because I have these ugly mutli-projects.