Re: RFC - Interpolation of method calls

[email protected] (John Siracusa) Mon, 18 Sep 2000 13:01:55 -0400
Newsgroups perl.perl6.language.objects
Message-ID <B5EBC2C2.74C8%[email protected]>
On 9/18/00 3:44 AM, Damian Conway wrote:
>>>   my $weather = new Schwern::Example;
>>>   print "Today's weather will be $weather->{temp} degrees and sunny.";
>>>   print "And tomorrow we'll be expecting ", $weather->forecast;
>> 
>> You are wicked and wrong to have broken inside and peeked at the
>> implementation and then relied upon it.
> 
> I think the issue is: *what* tempted them to be so wicked and wrong.
> It is the fact that iniquitous direct access interpolated easily, whereas
> virtuous accessor access didn't.

Don't forget the fact that direct access is much faster than a method
call in Perl 5.  This will be fixed in Perl 6, of course...right? :)

-John