#clojure style Q: should bool kw args end with questionmark? eg. (plot xs :trendline? true) or (plot xs :trendline true)
-
-
Replying to @sbelak
I like it when they do, e.g. https://git.io/vKCmZ . More importantly though, I'd pass such args in a map: (plot xs {:tr? true}).
1 reply 0 retweets 0 likes -
Replying to @janstepien @sbelak
If your args are a map you can process and alter them like a map before passing to the function. Rest kw args are unwieldy.
1 reply 0 retweets 1 like
Replying to @janstepien
don't worry I usually use an explicit map to make the fn work nicely with partial and ->>. Not sure why I picked that example.
2:09 AM - 12 Jul 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.