From: Eric Hodel Date: 2006-05-18T03:08:28+09:00 Subject: Re: Nonblocking socket-connect On May 17, 2006, at 4:13 AM, Vlad GALU wrote: > On 5/15/06, Francis Cianfrocca wrote: >> How about Socket#nbconnect and Socket#nbaccept? > > don't know the usual meaning of the exclamation mark, but I think > it would be nice to use it in order to separate blocking routines from > their non-blocking counterparts. Since usually the exclamation mark > suggests impatience, I thought that socket.connect! would be quite > appropriate to express the idea "connect now or else!", where "else" > may as well mean return with an error. The same thing would be nice > for other I/O routines too. In ruby the ! usually means the method modifies the receiver where the non-bang returns a new object. I can't think of an example where the ! signifies impatience in ruby. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com