Re: Recommended Perl 6 best practices?

2008-10-02 Thread TSa
HaloO, one nifty thing could be negation propagation in chained comparisons: ($a ne $b ne $c) === !($a eq $b || $b eq $c). This again insures some sanity if any of $a, $b or $c are junctions. BTW, the boolean connectives , || and ^^ shouldn't be auto-threaded through junctions. Regards, TSa.

Re: Recommended Perl 6 best practices?

2008-09-29 Thread Jacinta Richardson
Carl Mäsak wrote: Do not combine 'ne' and '|', like this: die Unrecognized directive: TMPL_$directive if $directive ne 'VAR' | 'LOOP' | 'IF'; One is tempted to assume that this means the same as $directive ne 'VAR' || $directive ne 'LOOP' || $directive ne 'IF, but it doesn't. Instead,

Re: Recommended Perl 6 best practices?

2008-09-14 Thread Carl Mäsak
Conrad (): Is there something more up-to-date concerning Perl 6 best practices that are presently-recommended (by p6l or @Larry) than the following item on the Perl 6 wiki? If you ask me, best practices evolve as a countering force to enough people using less-than-ideal practices to create