Closed stevan closed 11 years ago
I'm not sure I agree.
<doy> honestly, i think having separate "undef" and "not set" things almost always ends up more confusing than helpful
<doy> there are certain cases where it does matter
<doy> but there's no reason that those certain cases couldn't just store a scalar ref instead
<doy> i don't think exists($attr) is really all that useful of an api
<doy> you almost always just want either if ($attr) or if (defined $attr)
17:21 stevan: doy: actually, thnking about it
17:21 stevan: has should work just like my
17:21 stevan: my $foo;
17:21 stevan: $foo is implictly undef
17:21 doy: right
this is to allow people to tell the difference between a slot set to undef and a slot that has not yet been populated.