On 8/17/06, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
There might be a cognitive dissonance here with "err", since
C<err> in pasm/pir is testing for null, while C<err> in
perl6 tests for definedness. While it doesn't much matter
for strings in the examples above, it might make a difference for
$S0 = err hsh['key1'], 'foo'
good point. at first thought, i thought this looked much like nvl()
that i use in sql, so i can set a default (usually '%') to a parameter
if a null is specified. as i was writing it, i s/nvl/err/ and added
the //= magic without thinking it through. in any case, i think
default is ugly. but assign_if_null looks too long.
eh, whatever. the point is, this does look like a useful op, whatever its name.
~jerry