This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-31
Channels
- # announcements (3)
- # beginners (139)
- # boot (28)
- # cider (40)
- # cljdoc (1)
- # cljs-dev (30)
- # clojure (61)
- # clojure-conj (1)
- # clojure-dev (113)
- # clojure-germany (4)
- # clojure-italy (29)
- # clojure-nl (3)
- # clojure-russia (2)
- # clojure-spec (38)
- # clojure-uk (53)
- # clojurescript (188)
- # core-async (4)
- # css (2)
- # cursive (7)
- # data-science (5)
- # datomic (14)
- # emacs (1)
- # figwheel-main (192)
- # fulcro (37)
- # jobs-discuss (1)
- # mount (4)
- # off-topic (47)
- # pedestal (7)
- # portkey (14)
- # re-frame (4)
- # reagent (22)
- # reitit (2)
- # remote-jobs (1)
- # ring (6)
- # shadow-cljs (65)
- # spacemacs (7)
- # specter (6)
- # yada (8)
@mccraigmccraig do you hate using things like map and reduce then? What about filter?
Bore da
(Proper espresso machine that in house Barista at my current client uses is broken, so I guess I'll have to do with the 'bean to cup' machine or go out for coffee) first world problems
I never knew about fnext, ffirst or nfirst. I love that clojure has cadr, caar, and cdar. π
Amazing I knew something about Clojure before you did @otfrom. Although I do forget about them sometimes.
morning!
just my 2 cents, but conj
treating nil
like an empty sequence seems pretty consistent with most of the rest of clojure.core
(Pseudo-)Random core function of the day:
-------------------------
clojure.core/munge
([s])
...which curiously has no docstring
I suspect it may not be intended for general use
from the implementation though it seems to call the bit of code in the compiler that swaps illegal characters (in Java land) for eg. _QMARK_
or _PLUS_
eg: (munge "some!->strange+clojure+name?")
=> "some_BANG___GT_strange_PLUS_clojure_PLUS_name_QMARK_"
thatβs the great thing about terse variable names - you can interpret them however you like!
langs without nil-punning still have map, reduce and filter @otfrom ! it's very convenient in clojure, it's true, but nil itself is evil so how can nil-punning not be πΏ
https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare
that munge fn is definitely used in error stacktraces then
@alex.lynham I think it's used earlier than that.
you mean that refs just go through it early as a matter of course or?
He spent time in Moscow though, where causality is known to run backwards.
they are slightly different after all (assuming that the nil
in LISP1 is kinda similar to the nil
in )
re: the munging - when Java classes are generated, their names come from a munged version of the Clojure names that defined the code
then the stack trace has Java class names in it
Hello @ahmed.adam π π
I love that xkcd
hi @maleghast π
Welcome to the coolest language community going - and I don't mean cool like the Fonz, I mean welcoming, friendly, mutually assistive etc. π
Heeeeeeey! :thumbsup:
ahh indoctrination
(conj clojure-cult @ahmed)