Fork me on GitHub
#cursive
<
2022-02-11
>
Old account13:02:24

paredit or parinfer? what to choose.

Jordan Robinson13:02:25

I like parinfer but it's definitely just a preference thing 🙂

1
imre13:02:52

My recommendation is paredit all the way.Clojure is my first lisp and my first functional programming language. Back in '14 when I started playing with Clojure and Cursive, it was an absolute heureka moment when I read the Cursive paredit docs. Paredit made it incredibly easy to work with an otherwise unknown language and I totally miss it from every language where it isn't available. slurp, barf, raise, splice, etc are absolutely essential to my toolbox ever since. It makes you understand the AST of your code while being completely decoupled from how you indent/lay out things.

✔️ 3
cfleming22:02:19

Personally I use parinfer, since I can also use the paredit commands when they make sense.

4
Casey16:02:46

Is there a way to get the clj formatter to suck up the trailing closing parens on their own line? I don't see a paren-affecting setting in the code style settings panel

cfleming22:02:49

It should do this by default, do you have a case where that’s not working?

Casey12:02:09

Hmm it's definitely not. On any clojure project/file.

Casey12:02:43

It's possible this is user error as this is a long time cursive install, and I might have broke a setting in the past. Is there an option for this?

GGfpc16:02:36

Is it possible to define custom resolvers for macros? I'd like to use orchestra's defn-spec without all my code being red and squiggly 😅

Dumch16:02:22

do you know that if you press alt+enter on a macro form, Idea will ask you to select what kind of syntax to use for it?

GGfpc16:02:22

Yes, but this one can't be resolved as any of the existing ones

cfleming22:02:21

@U016XBH746B Could you add an issue for that and I’ll look at adding support, since orchestra is pretty popular.