good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re^3: Get rid of the Indirect Syntax, please!by dragonchild (Archbishop) |
on Apr 19, 2004 at 12:53 UTC ( [id://346265]=note: print w/replies, xml ) | Need Help?? |
I thought about it last night and realized my real objection to Perl6's indirect object syntax. The indirect syntax would now require you to know whether or not the first parameter is an object where it didn't in Perl5.
To me, the indirect syntax was a nice sugar when dealing with IO::File and friends (close $fh, in your example). That new() also played nicely was annoying, but I didn't care. I didn't have to know if $fh was an instance of IO::File or a GLOB or whatever. I just used it. Now, I am required to know, because I have to put the colon on if it's an instance or not if it's not. I have to keep track of whether it's an object or not. To me, that kinda invalidates the whole reason for the thing. Plus, do you really want close $*OUT:; all over your code, just to avoid $*OUT.close;? ------
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
In Section
Meditations
|
|