Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] Preferred coding style for if tests

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Ondra Tomecka <otom7630 AT lucy.troja.mff.cuni.cz>
  • To: SourceMage Sorcery List <sm-sorcery AT lists.ibiblio.org>
  • Subject: Re: [SM-Sorcery] Preferred coding style for if tests
  • Date: Wed, 28 Jan 2004 17:37:26 +0100 (CET)

On Wed, 28 Jan 2004, Eric Schabell wrote:

> On Wed, Jan 28, 2004 at 05:22:48PM +0100, Ondra Tomecka wrote:
> > Hi,
> >
> > Just a quick question, which may unleash a flamewar ;-)
> > Is there preferred style for writing tests?
> >
> > I mean should I use for patches this form:
> > -------------------------------------------
> > if [ some_test ]; then
> > do_some_simple_command
> > fi
> > -------------------------------------------
> >
> This one please, lowers the complexity for someone to help with the
> patching of code if you ask me... we are going to lay down a style
> document in a few months.
>
> erics

Great, I like this much more, as it is easier to read :)

Andy





Archive powered by MHonArc 2.6.24.

Top of Page