Making Erlang indentation-sensitive
Ulf Wiger has been experimenting with making Erlang indentation-senstive. He followed up with a Part 2 after comments.
For most people who start working in the Erlang language, the most annoying new concept is all the various line-terminators you have to know. Damien Katz sums this up nicely. All these explicit terminators might make other people's code easier to read but writing code should be easy too (they are equally important). Mue says just get over it but as a Python user I agree that Erlang would be way better off if it was indentation-based so this was an interesting experiment.
As for Python, I'm still shocked to hear people say "Python would be nice ... if it wasn't for that whitespace thing." Who is perpetuating this? I have no idea. The next time you hear someone say this, pass along Python: Myths about Indentation!

Re: Making Erlang indentation-sensitive
posted by Augie on Monday Apr 28th, 2008 at 8:22p.m.
WRT whitespace, it's not that it uses whitespace, it's that it doesn't use curly braces, at least for me. I still find that the blocks are clearer when doing a visual scan in C or Objective-C (those being my curly-brace languages of choice) than in Python, where I have to work a bit harder mentally.
And with the Erlang syntax, I actually did get used to it, and was wondering one day in Python where the commas and periods where. It actually helped my brain parse the code a little. Maybe I'm just crazy though.
Re: Making Erlang indentation-sensitive
posted by sapphirecat on Tuesday Apr 29th, 2008 at 9:11p.m.
The one real argument I can see against Python indentation is that you can't use vim's = command to autoindent a region, because vim doesn't know when you meant any of the blocks to end. So it looks clean, but it does require more fiddling than other languages.
Re: Making Erlang indentation-sensitive
posted by Kumar McMillan on Tuesday Apr 29th, 2008 at 10:46p.m.
I would be shocked and surprised if vim doesn't support autoindent for Python (every other editor I've used does: emacs, TextMate). A quick google search brought up this:
http://www.vex.net/~x/python_and_vim.html