Raku / old-design-docs

Raku language design documents
https://design.raku.org/
Artistic License 2.0
124 stars 36 forks source link

Documentation for &infix:<andthen> versus "with" is incorrect #113

Open pmichaud opened 8 years ago

pmichaud commented 8 years ago

In the description of &infix:<andthen>, S03:5446 says "If you wish to have the same semantics in the opposite order, use the with statement modifier."

This is inconsistent with the description of andthen, which says that andthen returns its first undefined argument. The with statement modifier returns an empty Slip if its argument is undefined.

I suspect the description should read: "For similar semantics in the opposite order, see the with statement modifier."

I'm against changing andthen to match with semantics; andthen fills a need that with does not.

See also https://rt.perl.org/Ticket/Display.html?id=128586 .

Pm