This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-08
Channels
- # admin-announcements (3)
- # beginners (284)
- # boot (179)
- # cider (15)
- # cljs-dev (6)
- # cljsrn (95)
- # clojure (105)
- # clojure-austria (4)
- # clojure-berlin (9)
- # clojure-germany (4)
- # clojure-japan (3)
- # clojure-russia (65)
- # clojurebridge (1)
- # clojurescript (109)
- # code-reviews (16)
- # cursive (27)
- # datavis (19)
- # datomic (68)
- # devcards (7)
- # funcool (31)
- # jobs (1)
- # ldnclj (2)
- # lein-figwheel (3)
- # leiningen (4)
- # off-topic (419)
- # om (255)
- # parinfer (39)
- # portland-or (2)
- # re-frame (28)
- # reagent (14)
- # slack-help (12)
- # spacemacs (1)
just a heads-up, another editor will be adding parinfer support by piggiebacking off Node
parinfer-mode for emacs: https://github.com/edpaget/parinfer-mode
@shaunlebron: I’m working on a native emacs lisp version of parinfer for emacs (no more piggiebacking off Node). Question, I see the variable `delims’ everywhere in the .cljc files but I’m not sure where it is defined
if you’re looking at indent_mode.cljc, delims
is often a local var, but not globally defined anywhere
you’re probably talking about how its value is created
that is done by update-delim-trail
the delim-trail
is just the close-parens at the end of a line
@shaunlebron: hmmm… I’m new to Clojure so I hope you’ll bear with me… in close-delims
, you did (let [[stack delims]…]…) I’m not sure that “delims” comes from… Is it defined globally? I don’t see it as a function argument either
@dongcarl: That’s clojure’s destructuring syntax. All of [stack delims]
is the left-hand-side of the binding, which means that whatever the right side is returns a sequence with at least two elements (sometimes).
okay so for clojure if it’s (let [[a b] [c d]]…) then a will be set to c, b will be set to d?
@shaunlebron: and you are setting stack and delims to an updated stack and delims through the loop?
right, I’m not too proud of that
but delims
starts as ””
it’s essentially a reducing function
@shaunlebron: okay awesome! So many things are different in Clojure from Lisp 😅
I’m open for a quick google hangout if you want a quick intro
or if you have more questions about the code, whichever works best for you
Oh that would be fantastic… I don’t have any particular questions now but if you have the words in you I’ll listen!! 😁
ha, well we can wing it, but just to give you a general intro to the code and clojure
I can do it in a few minutes, for maybe 30min?
cool!
I’ll post a hangout link here in a few
trying a public hangout
thanks @dongcarl for the great questions. apparently public google hangouts are uploaded automatically to the host's youtube account
so here it is if anyone wants to see the overview: https://www.youtube.com/watch?v=9Qb97MImus8&feature=youtu.be&t=4m20s
@shaunlebron: haha okay cool
@dongcarl, sorry are you okay with this?
@shaunlebron: yeah that’s cool of course
k cool