bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] minor code cleanups


From: Andrew Clausen
Subject: Re: [PATCH] minor code cleanups
Date: Sat, 9 Mar 2002 12:26:42 +1100
User-agent: Mutt/1.3.17i

On Thu, Mar 07, 2002 at 01:37:44AM -0700, Andreas Dilger wrote:
> Andrew,
> a minor cleanup of a couple functions.  Take or leave as you feel appropriate.

Thanks :)  I prefer the "goto error" idiom, because it matches
my "ideal language" better (sort of like C++ semantics... it
calls all destructors automatically when it exits a block)

Also, I prefer that "variables" (I don't like variables) are defined in
exactly one place (so they are really constants).  You probably
noticed: I don't like side-effects.

So, I guess I've got a rather different style/taste to most
Linux people (and probably GNU people too ;)

I guess I'm using the wrong language.  I'm currently reading
"Purely Functional Data Structures"...

I wonder when I'll be able to write (a reasonable implementation of)
Parted in Haskell?

Anyway, does my strange coding style make my code hard to understand?
It would prefer to have more people understand it, even if it means
I like it less.

Andrew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]