Re: problams with IO::Socket::INET
Mark Mielke (markm@nortel.ca)
27 Jan 1998 23:03 EST
In message "Re: problams with IO::Socket::INET",
'tchrist@jhereg.perl.com' writes:
>Could he who is enamoured of ->new() as a name please chime in?
Maybe it's a mistake, but i also _always_ tend to use ->new() because
it's the most obvious. Having to always look-up the docs for how to
construct on object is a rather frivolous waste of time in my eyes :-)
(Read: I'm freakin' lazy and i'd rather have an INTUITIVE interface...
one that i can guess without reading the docs)
As well, C++ and Java require you to use new(). I know that's not a
bulletproof reason, but it makes it more obvious to someone who has
never used the class in question before.
mark
P.S. I prefer:
my $object = new ObjectName();
Perhaps i am stuck on C++/Java. Oh well.
-- _________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ | Northern Telecom Ltd. |
|\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | Box 3511, Station 'C' |
| | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, ON K1Y 4H7 |
markm@nortel.ca / al278@freenet.carleton.ca |_______________________|