[Top][All Lists]

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

Re: [Gnu-arch-users] Re: Tla spork

From: Andrew Suffield
Subject: Re: [Gnu-arch-users] Re: Tla spork
Date: Fri, 27 Aug 2004 17:20:12 +0100
User-agent: Mutt/1.5.6+20040803i

On Fri, Aug 27, 2004 at 11:02:47AM -0500, John Meinel wrote:
> I will also say, though, Andrew Suffields alternative Fibbonacci
> sequence using Haskell looks rather clean.
> I'm not sure how the syntax works out when you start having less trivial
> alternatives (multiple lines for each "else")

As a general rule, it's either still trivial, or you pile on
parentheses like an idiot, or you break it down into smaller pieces
(with a 'let' or 'where' giving them localised names). Writing
non-trivial expressions in Haskell is bad form and completely
unnecessary - it's usually *simpler* to introduce a new local function.

> Also, Haskell seems just a little too loose about when does the sequence
> end.

It's not, I just didn't bother to go into detail not relevant to the

  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' : |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature

reply via email to

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