Fork me on GitHub
#clojure-dev
<
2021-10-18
>
borkdude14:10:19

I guess there's a slim chance because it's probably not important but static analyzer tools like clj-kondo think that if-let as well as if-some accepts a varargs amount of arguments because that's how it's defined: https://github.com/clojure/clojure/blob/b8132f92f3c3862aa6cdd8a72e4e74802a63f673/src/clj/clojure/core.clj#L1853 But the core spec for it throws, so this case isn't probably reachable in newer versions of clojure. Perhaps one could think of removing that varargs argument, but I realize that core is extremely careful not to break anyone who might rely on this.

borkdude14:10:11

Of course clj-kondo can special-case this, no problem, just wanted to mention it.

Alex Miller (Clojure team)14:10:26

don't think we're going to change that

borkdude14:10:25

fair enough

Alex Miller (Clojure team)14:10:40

we'll save that for Clojure 2 :)

😆 5
🙀 5
Ben Sless16:10:31

This will end up being like Half Life 3

eggsyntax18:10:58

Needs a catchier name than "Clojure 2" though. "Foreclojure" would be nice but the connotations are bad. "Enclojure"? 😉

Alex Miller (Clojure team)18:10:31

Enclojure was the name of the Clojure NetBeans plugin, so that's been done :)

eggsyntax18:10:38

Oh, true. Not enough good words ending in -closure...

souenzzo19:10:13

We can do a solution like add-doc-and-meta ?! Add something like this at the end of the core.clj

(alter-meta! #'if-some
  assoc :arglists '([bindings then] [bindings then else]))

Alex Miller (Clojure team)19:10:50

I don't think this is a problem that needs solving

🆗 1
ghadi23:10:40

it's going on the backlog troll

😁 2
Ben Sless06:10:35

We can avoid Python's migration efforts from 2 to 3 by just skipping 2!

💡 1
cfleming21:10:06

I can see Twitter now: Alex Miller confirms plans for Clojure 2!!!

😆 5
lread22:10:21

Will there be a party? Do I need to iron my pyjamas?

😆 1
seancorfield22:10:48

It was "Happy Clojure Day!" over the weekend, as I recall?

seancorfield22:10:11

(yeah, October 16th is Clojure's "birthday")

seancorfield22:10:49

I'm thinking back to the 10th birthday cake at one of the conferences

borkdude22:10:52

Every day in Clojure is a party for sure.