Skip Menu |
 

This queue is for tickets about the PerlX-Maybe CPAN distribution.

Report information
The Basics
Id: 124468
Status: rejected
Priority: 0/
Queue: PerlX-Maybe

People
Owner: perl [...] toby.ink
Requestors: HOLCAPEK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Support for lazy evaluation of `provided` value
Download (untitled) / with headers
text/plain 275b
Hi Toby, I've drafted a pull request [1] that attempts to implement lazy evaluation of the (hash) value passed to `provided` sub. Would you please consider this functionality and possibly merge it? Thanks! Regards Jan [1] https://github.com/tobyink/p5-perlx-maybe/pull/2
Download (untitled) / with headers
text/plain 284b
Adding `sub { ... }` around the value reduces the sweetness of the syntactic sugar. You might as well use the ternary operator `$x?$y:$z` which already does lazy evaluation. Also, it potentially breaks back compat. Also, it's missing an XS implementation. So I have to reject this.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.