<?xml version="1.0" encoding="windows-1252"?>
<node id="301631" title="Re: Re: Re: Re: Re: Perl Idioms Explained: &amp;&amp; and || &quot;Short Circuit&quot; operators" created="2003-10-23 12:28:08" updated="2005-07-08 13:04:22">
<type id="11">
note</type>
<author id="195718">
hardburn</author>
<data>
<field name="doctext">
&lt;p&gt;Hrm, that's kinda unfortunate. A C-style switch is always a tradeoff, flexibility wise, but the tradeoff can be big if you have a large number of cases. I supose if we're lucky, perl6 will optimize switches that use constant expressions into a jump table, though I suspect such a feature wouldn't be out in the first version of perl6--time enough for optimizations later.&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-195718"&gt;
&lt;p&gt;----&lt;br&gt;&lt;em&gt;I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.&lt;/em&gt; &lt;br&gt;
-- [Schemer]&lt;/p&gt;

&lt;p&gt;&lt;code&gt;:(){ :|:&amp;};:&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note&lt;/b&gt;: All code is untested, unless otherwise stated&lt;/p&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
301355</field>
<field name="parent_node">
301588</field>
</data>
</node>
