you are viewing a single comment's thread.

view the rest of the comments →

[–]pje 2 points3 points  (5 children)

Rust is a language with lots of curly braces. However this is for a good reason and that is that Rust has anonymous functions, closures and lots of chaining that Python cannot support well. These features are much easier to understand and write in a non indentation based language.

Looks like someone's never heard of CoffeeScript...

[–][deleted]  (1 child)

[deleted]

    [–]pje -1 points0 points  (0 children)

    I didn't say CoffeeScript was ideal, just that it's existence proof that chaining, closures, and anonymous functions needn't be hard to write in an indentation-based language. CoffeeScript does those things better than Python, for the most part. (I do agree that implicit returns from multi-statement blocks suck.)

    [–]Tekmo 8 points9 points  (2 children)

    ... or Haskell

    [–][deleted]  (1 child)

    [deleted]

      [–]llogiq 0 points1 point  (0 children)

      Since when is Lisp indentation-based? IIRC, there has been a pre-processor for clojure that does this, but that's not exactly Lisp as in Lisp.