Re: tabs in source code

[prev] [thread] [next] [lurker] [Date index for 2006/06/23]

From: peter (Peter da Silva)
Subject: Re: tabs in source code
Date: 23:04 on 23 Jun 2006
> in which case all attempts to fit it into 80 column lines are
> contortions that serve no other purpose than to distract while
> reading but particularly while writing.

You're confusing lines and statements. A statement can contain multiple lines.

Whether a statement should go on multiple lines or not is only loosely
related to length.

	a = function(a fairly complex expression, another expression);

That fits on one line, but I'm inclined to write it as:

	a = function(
		a fairly complex expression,
		another expression
	);

Simply because it's easier to read and provides redundancy and documentation.

Possibly my Lisp is showing.

> Any code formatting rule that cannot be formalised so that
> software can do it is a bad formatting rule;

That's fine, documentation isn't "a formatting rule". You might as well say
the same thing about comment and function name rules.

There's stuff above here

Generated at 20:01 on 27 Jun 2006 by mariachi 0.52