Damian Conway wrote:
At YAPC::EU I pointed out to Larry that we have an adverbial form that
defaults to true:


For orthogonality and clarity purposes this could also be written


and one that defaults to false:


but none that defaults to undef.

After rejecting my very reasonable suggestion of:


(;-) Larry then proposed that:


should be identical to:


Yeah, but I think that the arrow form should then be

   foo => undef

and not

   foo => ()

because () should be a defined value that booleanizes to False,
numifies to 0 and stringifies to ''.

Regards, TSa.

"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to