Re: RFC 171 (v1) my Dog $spot should call a constructor implicitly

[email protected] ("Matt Youell")
Newsgroups perl.perl6.language.objects
Organization Silicon Spike
Message-ID <[email protected]>
> mainstream OO languages go).  It looks like Dog could be a type of String
> subclass.

That was my first thought as well. Besides, I'd rather type:

    my Dog $spot("Spot");

Which says everything that needs to be said without any repetition, and it's
fairly intuitive.


> As with the above, the problem you are trying to solve is long type-names
> (which is a bazzar thing to find in perl anyway).  I just think that there
> are better ways of skinning that cat.

I think the main idea here is this: being allowed to say what you mean
without repeating yourself.


Matt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.