On Thu, Oct 13, 2005 at 11:52:16AM -0500, Luke Kanies wrote:
> On Thu, 13 Oct 2005, A. Pagaltzis wrote:
> 
> > It isn't anything like Python at all. There is only one level of
> > indentation. Once a block is indented far enough to be considered
> > a code block, all further indentation is literal.
> >
> > Not to mention that *all* alternative solutions are *really*
> > hateful.
> 
> Strangely, I don't find Restructured Text's use of indentation to
> determine markup nearly as distasteful as I find python's.  This is
> probably because text markup is 10x easier than code markup (e.g.,
> I almost never have to worry about things like line continuations).


When it comes to hating significant whitespace, nothing comes close to Perl6:

    sub square {my $x = shift; return $x * $x}
    print square(1) * 2    # Prints 2.
    print square (1) * 2   # Prints 4.


    my %hash;                        # Empty hash.
    if %hash{1} {print "Found it"}   # No output.
    if %hash {1} {print "Found it"}  # Prints 'Found it'.


I rather take all Pythons significant whitespace rules (which aren't
that bad, and wouldn't require me to change my coding style) repeatedly
than Perl6 whitespace rules (which conflict with almost every line I
write) once.

Evil rules. Pure evil. Hates doesn't come close to describe it.


Abigail (not touching Perl6 with a 10-feet pole).

Attachment: pgpeBNXvvz0Qg.pgp
Description: PGP signature

Reply via email to