[SLL] enforced white space

Brian C. Lane bcl at brianlane.com
Thu Jan 15 17:27:42 PST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck Wolber wrote:

> * Enforced formatting has always struck me as a way to lighten the load of 
> writing a parser at the expense of the developer.

All languages enforce formatting rules to one degree or another. And
using spaces for blocks doesn't increase the load on the developer --
remember that you are looking at the code as a newcomer. Anything new is
going to take a bit to get used to.

In the specific case of Python using spaces to delimit blocks makes the
code much easier to follow in many circumstances. Think of it as a way
to make your code more readable. How many times have you run across code
where you have to carefully match up the {} brackets? Think of all the
wasted CPU cycles from editors doing bracket matching and
blinking/colorizing that could be saved by using Python syntax.

You shouldn't let Python's indentation keep you from exploring the
language. That's kinda like throwing the baby out with the bathwater ;)

Brian

- --
- ---[Office 72.4F]--[Outside 38.9F]--[Server 100.0F]--[Coaster 68.2F]---
Software, Linux, Microcontrollers             http://www.brianlane.com
AIS Parser SDK                                http://www.aisparser.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Remember Lexington Green!

iD8DBQFJb+KOIftj/pcSws0RAhvMAJ9U6S+TMfbumvj9+qrcteeyPqiQqwCdHQGX
W4s0fKFH2cvCnrRaJWuvk1c=
=fKEa
-----END PGP SIGNATURE-----


More information about the linux-list mailing list