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

[email protected] (Piers Cawley)
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
Hildo Biersma <[email protected]> writes:

> Perl6 RFC Librarian wrote:
> >> =head1 DESCRIPTION
> > 
> > What is currently an optimization for pseudo-hashes:
> > 
> >     my Dog $spot = Dog->new();
> > 
> > should be replaced with:
> > 
> >     my Dog $spot;
> > 
> > which calls an implicit constructor (discussed further in the IMPLEMENTATION
> > section).  The optimization behaviour can be retained in some form (see the
> > MIGRATION section).
> 
> My previous concerns have not been adressed:
> - There may not be a default constructor
> - This makes creations of Singleton classes impossible
> - There is a good reason to created typed, but undef, references
>   and fill them in later.

And then there's:

  - Makes factory methods impossible.
  - Conveniently forgets all about polymorphism.

It's *horrible* I tell you. *HORRIBLE*

-- 
Piers
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.