I just send in a RFC that would allow many of the built in functions to act
as methods to a scalar. This would give us something like:
$name->chomp();
$name.chomp();
$name->chomp;
$name.chomp;
while still being able to say chomp($name).
-----Original Message-----
From: Nathan Wiger [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 14, 2000 2:15 PM
To: Lipscomb, Al
Cc: '[EMAIL PROTECTED]'
Subject: Re: RFC 89 (v2) Controllable Data Typing
> Having methods and properties on the basic data types seems like a nice
> thing.
>
> Just a thought.
Check out RFC's 49 and 73. I've got an upcoming RFC that fleshes out the
idea that "All scalars should be objects in disguise".
I think this would be a really cool idea, and it is being discussed.
Check these mail archives for reference:
http://www.mail-archive.com/perl6-language@perl.org/msg01541.html
http://www.mail-archive.com/perl6-language@perl.org/msg01601.html
http://www.mail-archive.com/perl6-language@perl.org/msg01653.html
http://www.mail-archive.com/perl6-language@perl.org/msg01699.html
I'm going to actually ask for a new mailing sublist, probably called
-object, on which this should be discussed. There's lots and lots and
lots and lots of details to work out.
-Nate