On Fri, Dec 22, 2006 at 03:56:22PM +0200, Yossi Kreinin wrote:
> Abigail wrote:
> >
> >>Well, I guess BitKeeper is right - whitespace matters in Makefiles, 
> >>Python scripts and ASCII art.
> >
> >
> >And don't forget perl6.  (HATE! HATE! HATE! perl6 is one language I won't
> >code in - for exactly this reason).
> >
> 
> I'm not very knowledgable about Perl, but I thought Perl 6 had those 
> metaprogramming capabilities from another planet, and you could make it 
> look like whatever you wanted (including Perl 5), and this would solve all 
> syntactic problems forever, and I wanted to read about it just out of 
> curiosity. So I thought you could also tell it that whitespace didn't 
> matter.
> 
> Did I get it all wrong?

In Perl6:

    print sqrt(9) + 7;  # Prints 10.
    print sqrt (9) + 7; # Prints  4.

    #
    # Code1 is run if %hash is non-empty. Code2 is always run.
    # Code3 is always run. Code4 is run if %hash{Code3} is true.
    #
    if %hash {Code1} {Code2}
    if %hash{Code3} {Code4}


HATE! HATE! HATE! HATE!


Abigail

Attachment: pgppGEipIxCwL.pgp
Description: PGP signature

Reply via email to