November 19th, 2009

Apollo 4 on column of fire

The problem with Python

Indentation as the significant indicator of program structure is an idea so bad that it is stunning anyone would endorse it. One slip-up in your text editor and the whole program becomes a jumble. OTOH a few keystrokes in a language with sensible grammar and your text editor (such as Emacs) can indent your program for you.

Perhaps it is time for someone to write a ratfor/camlp4 for Python to impose on it a sensible alternate grammar. (Not that I like the revised OCaml grammar; I don’t, partly because there is much weaker Emacs support for it than for the standard grammar.)

(BTW guess what problem I am having right now with some Python code, or actually it is Cython code.)