develooper Front page | perl.perl5.porters | Postings from April 2016

Re: [perl #127921] possible inconsistency in "perlop" documentationon precedence of || and //

Thread Next
From:
Zefram
Date:
April 19, 2016 21:17
Subject:
Re: [perl #127921] possible inconsistency in "perlop" documentationon precedence of || and //
Message ID:
20160419211736.GY8328@fysh.org
Wolf-Dietrich Moeller wrote:
>In the text further below in perlop these operators are listed in
>*separate* sections:
>*  C-style Logical Or
>*  Logical Defined-Or
>This means that "C-style Logical-Or" should have higher precedence than
>"Logical Defined-Or".

The problem, such as it is, is entirely in the documentation; we should
certainly not change the actual operator precedence.

I think "covered in precedence order" doesn't require that there be only
one section per precedence level.  Two operators treated serially that
have the same precedence still qualify as being in precedence order.
But the sectioning is in fact mostly one section per precedence level,
and consistency would be worthwhile.  In addition to "||" and "//",
"~~" has a separate section despite having the same precedence as "=="
and other operators.

-zefram

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About