Re: RFC - Interpolation of method calls
[email protected] (Tom Christiansen) Sun, 17 Sep 2000 19:55:43 -0600
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Message-ID | <22550.969242143@chthon> |
>Method calls should interpolate in double-quoted strings, and similar >locations. > print "Today's weather will be $weather->temp degrees and sunny."; >Would deparse to: > print 'Today\'s weather will be '.$weather->temp().' degrees and sunny.'; So, the -> operator is supposed to get expanded in dq strings, eh? What about class methods, like "Give him Employee->salary() again"? Or what about things like "move lost->found"? What does that do? And why is -> special then? What about "move lost+found"? Surely we can't be adding those now! Isn't it inconsistent to do this? --tom