Hacker News new | ask | show | jobs
by NooneAtAll3 4 days ago
main problem isn't brackets themselves - it's that they're too on the right

had brackets been displayed as curly braces in C - everything would look much more manageable

3 comments

I changed my opinion about parens when I stopped formatting like C, and used indent rather than parens to denote blocks. That is, a large amount of them at the end is totally fine.
so, instead of

    (foo (bar (1 2 3))
you'd prefer

    {
      foo {
        bar {
          1
          2
          3
        }
      }
    }
is that right?

    ( aar
      (bar1 1 2 3)
      (bar2 1 2 3)
      (bar3 
         (car1 2 3)
         (car2)
         (car3)
      )
    )
vs

(aar (bar1 1 2 3) (bar2 1 2 3) (bar3 (car1 2 3)(car2)(car3)))

Emacs vs vim, go!
I actually find wisp [0] harder to read/write than just plain Scheme.

But there's quite a few little reader projects that swap out the first layer of syntax for another. Lisp isn't entirely tied to one representation.

[0] https://www.draketo.de/software/wisp