In fact (if you didn't know) lisp M-expressions using whitespace and indentation existed long before python (though the original M-expression syntax idea was based on FORTRAN). The reason M-expressions aren't used in place of S-expressions is because people using lisp preferred and continue to prefer S-expressions.
Of course, this is a terrible idea and very un-lispy, because one of the key benefits of lisp is that it's simple to parse. Introducing infix operators destroys that simplicity.
Another workaround, which I quite like, is to simply remove all the "lisp syntax" entirely, and edit a tree directly using a syntax directed editor.
()
prin1
()
*
()
+
3
4
7
Exceedingly vertical, obviously, if you don't allow inline parens at all.If you were, you could compress any run of lines by simply moving everything with no children into the parent parens. Applying that only to the deepest bit of the above, we'd get:
()
prin1
()
*
(+ 3 4)
7
Of course, the original could be transformed into actual lisp by simply moving end-parens: (
prin1
(
*
(
+
3
4
)
7
)
)