Skip Menu |

This queue is for tickets about the Moose-Autobox CPAN distribution.

Report information
The Basics
Id: 72297
Status: rejected
Priority: 0/
Queue: Moose-Autobox

People
Owner: Nobody in particular
Requestors: bobtfish [...] bobtfish.net
Cc:
AdminCc:

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



Subject: Moose::Autobox thoughts
Date: Mon, 4 Jul 2011 20:01:04 +0100
To: rjbs [...] cpan.org
From: Tomas Doran <bobtfish [...] bobtfish.net>
I'd quite often like to be able to do: my $foo = undef; foreach $thing ($foo->flatten) { } And have the loop not execute (by returning ()).. Is this idea insane? And if not, would you take a patch? Cheers t0m
21:16 < rjbs> t0m: no, undef is a value Which I do not disagree with. It flattening to an empty list would be syntactically nice (for some problems), however on reflection is entirely incorrect.