On Fri, Dec 11, 2009 at 12:31 PM,  <pugs-comm...@feather.perl6.nl> wrote:
...
> -It is a compiler error to use a bare C<print> without arguments.
> +The compiler will warn you if use a bare C<print> without arguments.
>  (However, it's fine if you have an explicit argument list that evaluates to
>  the empty list at runtime.)
>
> +    print;             # warns
> +    if $_ { print }    # warns
> +    if $_ { print() }  # ok, but does nothing
> +    if $_ { print () } # ok, but does nothing

What's the reasoning behind not using older perl convention of print
w/no args becoming "print $_" ?

I understand that this question is probably about six years late!

Reply via email to