Fork me on GitHub
#parinfer
<
2015-12-08
>
shaunlebron00:12:09

just a heads-up, another editor will be adding parinfer support by piggiebacking off Node

dongcarl04:12:31

@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

shaunlebron17:12:13

if you’re looking at indent_mode.cljc, delims is often a local var, but not globally defined anywhere

shaunlebron17:12:44

you’re probably talking about how its value is created

shaunlebron17:12:10

that is done by update-delim-trail

shaunlebron17:12:30

the delim-trail is just the close-parens at the end of a line

dongcarl21:12:23

@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

eraserhd21:12:46

@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).

eraserhd21:12:23

(It’s not (let [stack delims …] …) which is different.)

dongcarl21:12:17

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?

dongcarl21:12:00

@shaunlebron: and you are setting stack and delims to an updated stack and delims through the loop?

shaunlebron21:12:21

right, I’m not too proud of that

shaunlebron21:12:29

but delims starts as ””

dongcarl21:12:29

@eraserhd: thanks for the clarification simple_smile

shaunlebron21:12:51

it’s essentially a reducing function

dongcarl21:12:12

@shaunlebron: okay awesome! So many things are different in Clojure from Lisp 😅

shaunlebron21:12:47

I’m open for a quick google hangout if you want a quick intro

shaunlebron21:12:15

or if you have more questions about the code, whichever works best for you

dongcarl21:12:19

Oh that would be fantastic… I don’t have any particular questions now but if you have the words in you I’ll listen!! 😁

shaunlebron21:12:17

ha, well we can wing it, but just to give you a general intro to the code and clojure

dongcarl21:12:08

Cool! When do you want to do this?

shaunlebron21:12:52

I can do it in a few minutes, for maybe 30min?

dongcarl21:12:26

Sure! I’m sure the intro would help me along greatly 😄

dongcarl21:12:41

Just tell me when you’re good to go!

shaunlebron21:12:50

I’ll post a hangout link here in a few

shaunlebron21:12:23

trying a public hangout

shaunlebron22:12:26

thanks @dongcarl for the great questions. apparently public google hangouts are uploaded automatically to the host's youtube account

shaunlebron22:12:22

@dongcarl, sorry are you okay with this?

dongcarl22:12:35

@shaunlebron: yeah that’s cool of course

snoe23:12:54

nice video!