-------beginquote-------<br>Now let's open the case for the prosecution. Let'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 'C', since this is exactly what 'C' prototypes are for. <b>It is unfortunate that Perl uses the name 'prototype', 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's compiler will only throw errors if it can'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"><<a href="mailto:edencardim@gmail.com">edencardim@gmail.com</a>></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 <<a href="mailto:russoz@gmail.com">russoz@gmail.com</a>>:<br>
</div><div class="Ih2E3d">> Eden,<br>
><br>
> Por gentileza, você pode me explanar um pouco mais sobre isso? Qual a lógica<br>
> 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"> Eden Cardim Need help with your Catalyst or DBIx::Class project?<br>
Code Monkey <a href="http://www.shadowcat.co.uk/catalyst/" target="_blank">http://www.shadowcat.co.uk/catalyst/</a><br>
Shadowcat Systems Ltd. Want a managed development or deployment platform?<br>
<a href="http://edenc.vox.com/" target="_blank">http://edenc.vox.com/</a> <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>
"Though we live in trying times, we're the ones who have to try"<br>