[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] perl: perl subroutine prototypes are evil, don't use them
From: |
Stefano Lattarini |
Subject: |
Re: [PATCH] perl: perl subroutine prototypes are evil, don't use them |
Date: |
Fri, 19 Apr 2013 15:13:37 +0200 |
Reference:
<http://lists.gnu.org/archive/html/automake-patches/2013-03/msg00004.html>
On 03/05/2013 09:22 PM, Stefano Lattarini wrote:
> Basically, they are not really prototypes, but rather a trick to have
> user-defined subroutines that behave more similarly to perl built-in
> functions, by allowing them to be called without parentheses and to
> impose context on their argument. Such semantics can be useful in some
> selected situations, but it causes unexpected and harmful behaviours
> and side effects if we try to use perl prototypes as we would use C
> prototypes.
>
Pushed to maint now (with some adjustments to the commit message).
Regards,
Stefano
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] perl: perl subroutine prototypes are evil, don't use them,
Stefano Lattarini <=