Hi,

True, I see similar names in JDK Socket library too. However if the function
is not returning any thing, we see this naming is quite confusing with void
return type. Take a similar example of HashMap where put and remove does
return the object beeing put and added. Few inconsistancies..

If the name was doConnect() or makeConnection() could convey that it need
not return any thing. However just by method name connect(), once could
easily expect it to return something.  My view here is coming by
understanding of connect() is closer to thinking it as getConnection()
method.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com

-- 
View this message in context: 
http://www.nabble.com/changes-to-function-signature..-tf4621415s12049.html#a13200476
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to