Re: problams with IO::Socket::INET
Mark Mielke (markm@nortel.ca)
28 Jan 1998 00:18 EST
In message "Re: problams with IO::Socket::INET",
'tchrist@jhereg.perl.com' writes:
>>Just looks really messy in my opinion. (obfuscated might be the word? :-) )
>>How would you like to use:
>> STDOUT->print("...");
>>All the time? I think i rest my (our?) case.
>
>Irrelevant. print is special, and will not be overridden
>or treated as a function call when it isn't.
I thought one of the points of perl5 was to generalize everything into
functions? Just because underneath a certain operation may have it's own
opcode doesn't mean it should be presented as "special" to the user.
I thought this was the point of making magic prototypes to handle user
defined grep{} like sub{}'s. (With the exception of the magical sort{} call)
Implementation and interface should not be confuzed. There should be no
"special cases".
mark
-- _________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ | Northern Telecom Ltd. |
|\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | Box 3511, Station 'C' |
| | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, ON K1Y 4H7 |
markm@nortel.ca / al278@freenet.carleton.ca |_______________________|