-------beginquote-------<br>Now let&#39;s open the case for the prosecution. Let&#39;s assume that we have a persistent whiney developer who is determined to use prototypes on every Perl subroutine and is attempting to defend his choice:<br>
<br>1. Prototypes allow Perl to pick up errors in subroutine calls.<br><br>This is a common mistake made by developers who have a background with &#39;C&#39;, since this is exactly what &#39;C&#39; prototypes are for. <b>It is unfortunate that Perl uses the name &#39;prototype&#39;, since in Perl, the feature exists for an entirely different reason - to allow Perl to silently coerce the arguments into a form that matches the prototype. In fact Perl&#39;s compiler will only throw errors if it can&#39;t manage to do that.</b><br>
---------endquote---------<br><br>Exatamente o que eu pensei enquanto lia. Péssima escolha de nome, não deveriam ter chamado de protótipos. Aliás, realmente, tirando o syntax sugar eventual, RUN FORREST, RUUUN!<br><br><div class="gmail_quote">
On Tue, Nov 18, 2008 at 12:23 AM, Eden Cardim <span dir="ltr">&lt;<a href="mailto:edencardim@gmail.com">edencardim@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">2008/11/17 Alexei Znamensky &lt;<a href="mailto:russoz@gmail.com">russoz@gmail.com</a>&gt;:<br>
</div><div class="Ih2E3d">&gt; Eden,<br>
&gt;<br>
&gt; Por gentileza, você pode me explanar um pouco mais sobre isso? Qual a lógica<br>
&gt; para desaconselhar o uso de protótipos como mecanismo de verificação?<br>
<br>
</div><a href="http://stackoverflow.com/questions/297034/use-of-function-prototypes-in-perl" target="_blank">http://stackoverflow.com/questions/297034/use-of-function-prototypes-in-perl</a><br>
<a href="http://www.perlmonks.org/?node_id=406231" target="_blank">http://www.perlmonks.org/?node_id=406231</a><br>
<a href="http://www.perlfoundation.org/perl5/index.cgi?prototype" target="_blank">http://www.perlfoundation.org/perl5/index.cgi?prototype</a><br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="Wj3C7c"> &nbsp; Eden Cardim &nbsp; &nbsp; &nbsp; Need help with your Catalyst or DBIx::Class project?<br>
 &nbsp;Code Monkey &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.shadowcat.co.uk/catalyst/" target="_blank">http://www.shadowcat.co.uk/catalyst/</a><br>
&nbsp;Shadowcat Systems Ltd. &nbsp;Want a managed development or deployment platform?<br>
<a href="http://edenc.vox.com/" target="_blank">http://edenc.vox.com/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.shadowcat.co.uk/servers/" target="_blank">http://www.shadowcat.co.uk/servers/</a><br>
_______________________________________________<br>
SaoPaulo-pm mailing list<br>
<a href="mailto:SaoPaulo-pm@pm.org">SaoPaulo-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/listinfo/saopaulo-pm</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alexei Znamensky [russoz_gmail_com] [<a href="http://russoz.wordpress.com">russoz.wordpress.com</a>] [<a href="http://www.flickr.com/photos/alexeiz">www.flickr.com/photos/alexeiz</a>]<br>
&quot;Though we live in trying times, we&#39;re the ones who have to try&quot;<br>