develooper Front page | perl.perl6.language | Postings from April 2003

Re: HELP! Type Coercions [was Re: Do we really need the dual type system?]

Thread Previous | Thread Next
From:
Dave Whipp
Date:
April 17, 2003 10:49
Subject:
Re: HELP! Type Coercions [was Re: Do we really need the dual type system?]
Message ID:
20030417174931.79344.qmail@web9704.mail.yahoo.com

--- Michael Lazzaro <mlazzaro@cognitivity.com> wrote:
> By gum, it looks like we're all on the same page, or getting there.
> My only big question is what the names of the two things are -- the
> "root of all scalars" word, and the "junction of all builtin
> scalars" word.  In other words, what's this shorthand for:
> 
>     my $x;
> 
> does it mean
> 
>     my untyped $x;
>     my scalar $x;
>     my Scalar $x;
> 
> What's that damn word?

Well Huffman says it can be as long a phrase as we like -- because
we'll never type it. I'm thinking something like:

  {my $x}
eq:perl6
  {my any(*@*primitive_types, Object) $a is scalar}

Its not un-typed: its any-typed.

Dave.

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About