There were at least several attempts at bringing some better syntax
(including meaningful indentation) to various Lisps. None of them really
succeeded but you may look at the more recent ones for Scheme to get
some inspiration:
http://srfi.schemers.org/srfi-49/srfi-49.html
http://www.dwheeler.com/readable/readable-s-expressions.html
Both contain a working reader (implemented in Scheme but it should not
be very hard to port it) and discuss some corner cases.
--
regards,
Jakub Piotr Cłapa
I think your idea is very interesting and would like to try it out. It
would be a very lightweight option!
I agree with you that it's worth trying, and I agree with Tim that
it's going to have some constraints.
Your idea for ignoring indentation on lines that start with a '(' is
an interesting one that neatly solves a problem I thought you were
going to have.
When I see Lisp without ()'s, I also see Ruby and not Python.
This popped up in my news feed:
i think that if you just used the brackets, then you would get used to
it like everyone else. Having said that, it is certainly one of the
obstacles that make a large number of people move onto something else.
I share your interest in the indenting idea, even though I can ignore
the brackets if I want to. It would be entirely based on being a pure
transform of text, such that S-expr and indentation is equivalent.
A lot of people can't get past Python's mandatory indenting, so it is
a bit ironic that Lisp would end up with two options, both of which
annoy large groups of people. :) Too bad for them, really.