Lisp Rainbows
June 28, 2014
I always thought Skittles and Lisp should have more in common. Perhaps it’s just me. Perhaps I am the only one that has trouble following all those damn parentheses. It doesn’t take many of them, honestly. Three of four levels in and I start to get a little dizzy. Here’s an example I was just looking at this morning, from Racket’s Quick Introduction.
(define (checker p1 p2)
(let ([p12 (hc-append p1 p2)]
[p21 (hc-append p2 p1)])
(vc-append p12 p21)))
Now, assuming that others do in fact have the same difficulty (and love for Skittles) has it not occurred any of the creators of syntax highlighting for Lisp, that perhaps it would be a good idea to color coordinate the parentheticals?

Oh, yea. You can almost taste that Rainbow!