in reply to (jeffa) Re: Noble DOT vs the Allmighty ARROW
in thread Noble DOT vs the Allmighty ARROW

Having spent some time writing a largish program in perl 6 (and then porting it to perl 5 to make sure that the design was sound), I found that one of the persistent mistakes I kept making in my perl 5 code was trying to use . all the time instead of ->.

However, the hardest thing to give up was the given/when syntax, which is just lovely. Being able to use the -> $foo, $bar {...} syntax to make anonymous functions of known arity was rather cool too, if a little more obscure...

Replies are listed 'Best First'.
Re: Re: (jeffa) Re: Noble DOT vs the Allmighty ARROW
by blakem (Monsignor) on May 09, 2002 at 02:03 UTC
    Could you expand on "writing a largish program in perl 6"? How does one go about doing such a thing? I thought p6 was merely in the design stage. Is there a "working" p6 interpreter that we can play with?

    -Blake

Re: Re: (jeffa) Re: Noble DOT vs the Allmighty ARROW
by cowens (Beadle) on May 08, 2002 at 15:38 UTC
    You can still use Conway's switch module in Perl 5. It uses source filters to translate switch/case or given/when structures to Perl 5 structures.
      I know. The problem is that, AFAICT, source filters don't seem to work if you require a module at runtime. Which is jolly annoying 'cos I need to do that in a large chunk of the code I write.