HaloO,

Larry Wall wrote:
> As mentioned on irc, it should do the same thing as "foo" => ().
> The question is whether () in item context promotes to [].  I don't
> think it ought to, since () is really the only way we have of writing
> NIL in Perl 6, and [] isn't really NIL.  And I think it would be odd
> to have *two* discontinuities:
> 
>     item (1,2)        # [1,2]
>     item (1)  # (1)
>     item ()   # []???
> 
> One discontinuity is bad enough:
> 
>     item (1,2)        # [1,2]
>     item (1)  # (1)
>     item ()   # ()

Sorry, what am I missing that I see no problem with List
always itemizing to an Array?

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