From: ara.t.howard@... Date: 2006-05-18T03:23:27+09:00 Subject: Re: Nonblocking socket-connect On Thu, 18 May 2006, Eric Hodel wrote: > 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. exit! -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama