in reply to RFC: New style for argument check in subs
"missing" ne "undefined"!
An undef may very well be the value you want to specify! There is a big difference between foo({bar => 15, baz => undef}) and foo({bar => 15}) and I would definitely not expect to get the default value of baz in the first case.
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RFC: New style for argument check in subs
by LanX (Saint) on Sep 05, 2012 at 11:41 UTC | |
by Tux (Canon) on Sep 05, 2012 at 15:05 UTC | |
by LanX (Saint) on Sep 05, 2012 at 15:30 UTC |
In Section
Meditations