On Wed, May 11, 2005 at 11:45:12AM -0500, Jonathan Scott Duff wrote: > We're discussing the proper semantics of (1) on #perl6. Here's > where we're at so far: > > 1. specialise () to parse as (,) > 2. scalars are singleton lists, so () naturally > 3. make (1) die horribly.
(1) means 1, which is probably undefined, so it dies. That could be detected at compile time. (my $foo = 1) means $foo, which would die at runtime, unless there's type inference going on. In any case, I don't see a List in () without a list-creating expression in the (). > -Scott -- wolverian
Description: Digital signature