HaloO,

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

   :foo

For orthogonality and clarity purposes this could also be written

    :?foo



and one that defaults to false:

   :!foo

but none that defaults to undef.

After rejecting my very reasonable suggestion of:

   :¡foo

(;-) Larry then proposed that:

   :foo()

should be identical to:

   :foo(undef)

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