develooper Front page | perl.perl6.language | Postings from February 2012

Re: Setting private attributes during object build

Thread Previous | Thread Next
From:
Damian Conway
Date:
February 2, 2012 02:27
Subject:
Re: Setting private attributes during object build
Message ID:
CAATtAp61PwQG6LatzVkK7fvVMUmCLj9GMvphmMLuRsv9dy6hnQ@mail.gmail.com
My thanks to Kris and Moritz for reassuring me that
the Perl 6 initialization semantics remain sane. :-)

In response to yary's original observations, the extra work required to
achieve non-standard semantics doesn't seem unreasonable to me.
Especially as, should one need to do it regularly, one could just create
a role (possibly parametric) to handle all the boilerplate
and then mix just it into any class that requires it.

Damian

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