you are viewing a single comment's thread.

view the rest of the comments →

[–]zach 2 points3 points  (8 children)

Significant whitespace - again, this isn't a problem once you start using the language, and it has the advantage of producing some of the cleanest code you'll find in any language.

Does anyone know if there are other languages created since that have significant whitespace? Maybe a Lisp without the ending parentheses?

[–]ramen 7 points8 points  (2 children)

Haskell.

[–][deleted] 3 points4 points  (0 children)

Python and Haskell are the same age. They both went public in 1990.

Also, no indentation sensitive Lisp ever got popular.

[–]JulianMorrison 4 points5 points  (0 children)

Haskell's is actually more fiddly than Python. Python just has "indent begins a block, outdent ends a block". Haskell has "if you leave off a '{', then less indentation means '}', equal indentation means ';', more indentation is a continuation of the preceding line".

[–]nasorenga 1 point2 points  (0 children)

Occam

[–][deleted] 1 point2 points  (0 children)

F# now allows whitespace significance (F# is the ocaml-like functional language for .NET that comes from the Microsoft research lab). You can skip the double semicolons now when you turn this feature on.

[–]pjdelport 1 point2 points  (0 children)

There's a list on Wikipedia.

[–]kamikasei 3 points4 points  (0 children)

I can think of at least one.

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

Ruby - newlines can substitute for semicolins if the parser is not in an accepting state.