Mark is a user on mastodon.technology. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

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)])))

I am, admittedly, the former even when I shouldn't be. But hey, it'll pay off if I ever get paid by the line of code.

Yesterday I saw someone's code though that passed 200 characters wide O_O

@cwebber Option C: endlessly dithering over whether to break 80 chars or put the first arg below the function name, both of which feel slightly wrong

Mark @mostlycoolmark

@cbowdon @cwebber Another option would be to have an automatic code formatter run prior to commit that will reformat to the agreed structure.

That way you can code how you want, but at the end of the day everyone's code spits out the same.

ยท Web ยท 0 ยท 1