Skip to content

[doc] perlop: splitting of the section about 'or' and 'xor' #18565

@rsFalse

Description

@rsFalse

Where
https://perldoc.perl.org/perlop#Logical-or-and-Exclusive-Or

Description
I suggest to split this section into two. Reason is that 'or' differs from 'xor' significantly: 1) can/cannot short-circuit, 2) 'xor' returns Perl's TRUE or FALSE i.e. 1 or 0/'', and 'or' returns differently (LEFT: evaluated expression; RIGHT: (evaluated?)expression with context propagation from outside). These operators look similarly (and, or, xor), but 'xor' behaves differently. Splitting needed for emphasis of difference.

(This is almost a copy of my suggestions which I wrote earlier to perlmonks https://perlmonks.org/?node_id=11128119)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions