Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl 6 feature that scares me the most:

by enoch (Chaplain)
on May 29, 2003 at 19:06 UTC ( #261649=note: print w/replies, xml ) Need Help??


in reply to Perl 6 feature that scares me the most:

As of right now, I am the singular voter for variable traits. I just don't really see it, yet. I understand it, when it is used like:
my DVD $matrix is Scalar; # or my DVD @disks is Array; # or, even my DVD %disks is Hash;
I just get a little wary when I see something like:
my DVD $matrix is Media; # or my CD @disks is Media;
I just don't know how that is going to work. For example, I know what this would do:
my DVD $matrix is Scalar; $matrix = "I know Kung Fu";
But, I have no idea what this does or how to define what it does in the whimsical world or Perl 6:
my DVD $matrix is Media; $matrix = "There is no spoon";
Anyone have insight?

enoch

Replies are listed 'Best First'.
Re: Re: Perl 6 feature that scares me the most:
by diotalevi (Canon) on May 29, 2003 at 20:47 UTC

    And now you can also do this. *grin* All that this does is separate the interface from the implementation.

    my DVD @disks is Scalar; # or, even my DVD %disks is Array;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://261649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2016-10-01 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.