This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-10
Channels
- # admin-announcements (1)
- # boot (464)
- # braid-chat (4)
- # cider (6)
- # cljs-dev (7)
- # cljsrn (1)
- # clojars (1)
- # clojure (26)
- # clojure-france (1)
- # clojure-japan (6)
- # clojure-russia (35)
- # clojure-uk (3)
- # clojurescript (25)
- # cursive (5)
- # hoplon (389)
- # om (20)
- # om-next (1)
- # onyx (5)
- # other-lisps (1)
- # overtone (9)
- # planck (12)
- # proton (7)
- # re-frame (10)
- # reagent (13)
- # ring (23)
- # spacemacs (11)
I just posted to #C03RZGPG1 about the 0.5.6 release of clojure.java.jdbc
which cleans up the API and deprecates all variadic function signatures to make the library more composable with other code. https://github.com/clojure/java.jdbc#change-log Happy to discuss in depth here or via DM.
"deprecates all variadic function signatures” 😍
At World Singles, we rely heavily on clojure.java.jdbc
and the variadic calls are a pain to deal with when composing the library into other code 😞 We had one insert!
call that used apply
and concat
to string together not only a bunch of rows we’d extracted from another table but a string of keyword/value option arguments as well. shudder
The upcoming 0.6.0 release will remove all deprecated features from the library (including the older API in java.jdbc.deprecated
).
"deprecates all variadic function signatures" — this isn’t quite strictly true as a few of the "command" style functions are still variadic (e.g., db-do-commands
) but those are less likely to be composed (I think) and they don’t have any trailing keyword options etc.
Also db-do-prepared
is still variadic but also has no trailing keyword options so using apply
with that tends to just involve a sequence of parameter groups to be passed into the SQL.
I may have a go at rewriting those so I can deprecate the variadic aspect...
@viebel: KLIPSE works now in my RSS reader. One funny thing is that the page always scroll to the vertical middle when opening an article
1. Could you please open an issue?
2. Did you read @raphael article about defprotocol secret http://blog.klipse.tech/clojurescript/2016/04/09/clojurescript-protocols-secret.html?
I was curious to receive your feedback
We had a lot of page views today
It seems people are really interested by defprotocol secret
Is something like this doable?
Apparently not
It considers it to have the same arity
@nnbosko: Is there a reason you wouldn't want to use a mulitmethod there? You can dispatch off of type.
I just wanted to see if I could make a generic catch-all function for those cases but it's not really necessary
@nnbosko: you could probably use core match