Re: Solutions and Discussion for Perl Quiz of the Week #23

Matthew Walton <[email protected]>
Newsgroups gmane.comp.lang.perl.qotw.discuss
Message-ID <[email protected]>
Mark Jason Dominus wrote:

> On Fri, Sep 10, 2004 at 05:07:21PM -0400, Daniel Martin wrote:
> 
>>>The problem with his code was that when Matthew Walton posted it to
>>>the mailing list, an extra space was inserted into the source.  Since
>>>haskell is (or at least, is usually) a language where indentation is
>>>significant, this meant it didn't compile.

D'oh!

> Haskell's base definition includes curly brace delimiters for the
> blocks, similar to Perl or C.  It only becomes whitespace-sensitive if
> you leave out the delimiters; then the indentation is used to infer
> the block structure.

I'll use curly brace syntax next time!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.