Kit Redgrave 🕯 is a user on glitch.social. You can follow them or interact with them if you have an account anywhere in the fediverse.

Tag urself on lisp indentation style:

;; I'm afraid of passing 80 characters
(proc1
arg1 arg2
(proc2
arg1 arg2
(cond
[(foo)
(bar 'baz 'quux)]
[else
(beep boop 'bop)])))

;; Everyone has wide monitors these days anyway right?????
(proc1 arg1 arg2
(proc2 arg1 arg2 (cond [(foo) (bar 'baz 'quux)]
[else (beep boop 'bop)])))

@cwebber when I was first learning Scheme it was in college and I indented it like C:

(define foo
(lambda (x y)
)
)

I got a direct mail from the TA about that one.

Nowadays when I do Scheme I do it's usually style #1

@ninjawedding @cwebber I don't even see what's wrong with that, but maybe the C has rotted my brain so hard I'm lost forever... ;p

@KitRedgrave @cwebber To me, it's the trailing parentheses just kinda dripping off the code that look ugly. It might be more evident in, uh, maybe say FizzBuzz: gitlab.peach-bun.com/snippets/
Kit Redgrave 🕯 @KitRedgrave

@ninjawedding @cwebber eh, ok, then just fold 'em into the line above them :p

i kinda like this style, thinking about it, because it makes it really clear that these are actually lists of things.

· Pinafore · 0 · 0