This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-06
Channels
- # announcements (13)
- # aws (3)
- # beginners (10)
- # calva (3)
- # clj-kondo (1)
- # clojure (63)
- # clojure-spec (15)
- # clojure-sweden (1)
- # clojure-uk (6)
- # community-development (2)
- # cursive (32)
- # datomic (20)
- # duct (1)
- # emacs (11)
- # events (1)
- # fulcro (32)
- # keechma (23)
- # luminus (2)
- # reagent (1)
- # ring (1)
- # shadow-cljs (23)
- # spacemacs (5)
- # specter (4)
- # sql (13)
- # tools-deps (16)
- # vim (1)
- # yada (2)
On this Independence Day weekend, why not try out a tall glass of anonymous function syntax independence? To liberty ๐ป
#%/%
- johnmn3/perc
Now with kwargs https://github.com/johnmn3/perc#keyword-arguments
I honestly donโt get why you would do that to yourself. Why not just make a fn?
I mean, I'm not sold on the syntax either ๐ but I'm just betting that it's at least worth exploring
I actually recently did something like that for ordinal argument with defaults https://gist.github.com/dantheobserver/e21b6f7fed74dca079edf2806b71791a
though ended up not using it because it's missing the case of passing in a var rather than a vector literal. But it's always fun going down macro rabbit holes
One critique is I would say is the tradeoff you make to be consice I feel makes it lose some of its clarity. I think most fns that would need to do ocmplex destructuring would be better off as a named function anyway. in most languages that support unnamed functions they have a limited and straightfoward use case (simple events, basic mapping, etc) anything more complex can be better understood as a name in place of a more complex function.
But, sometimes, when that function is a value in a map, the function already has a name, in the form of the key... why keep changing the name? Head on over to #perc for further discussion. I'm going to riff on some of the rationale over there.
Cognitect Labs' aws-api 0.8.342 https://groups.google.com/forum/#!topic/clojure/_Fc0__RZbss
And, one more time ...
[ANN] Cognitect Labs' aws-api 0.8.345 https://groups.google.com/forum/#!topic/clojure/BxdZUPh7_d8