develooper Front page | perl.perl5.porters | Postings from October 2021

Re: Elevator pitch - "assuming"

Thread Previous | Thread Next
Paul "LeoNerd" Evans
October 16, 2021 15:04
Re: Elevator pitch - "assuming"
Message ID:
On Wed, 28 Jul 2021 12:52:25 +0100
"Paul \"LeoNerd\" Evans" <> wrote:

> Oh well if you wanted it as a block with the keyword first, that's
> easily possible as a keyword module:
>   assuming( $value ) {
>     $_ = calculate_new_value_using $_;
>   }

Veesh: As a way to progress this idea, perhaps you would consider this

If you make it as a keyword in that form, you don't immediately get the
infix notation but you would at least be able to experiment with the
idea in its block form as a regular CPAN module.

In addition it would probably be possible to do as an infix version as
well with my PL_infix_plugin branch, though that won't help "regular"
perl builds. :)

Paul "LeoNerd" Evans      |  |

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About