From: mathew Date: 2010-11-30T11:58:08+09:00 Subject: [ruby-core:33478] Re: [Ruby 1.9-Feature#4100] Improve Net::HTTP documentation --0016367fbb7c9d460f04963c5b92 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 29, 2010 at 19:09, Eric Hodel wrote: > Chunks 1, 3, 4, 5, 6 and possibly 2 will conflict with my patch. > Does anyone else want to take a look at the conflicts, or shall I try resolving my changes with the latest commit and coming up with another patch? > Your example for this could be simpler. I would write: > > case response > when Net::HTTPSuccess then > when Net::HTTPRedirection then > when Net::HTTPServerError then > I spend too much time writing Java where switch/case can't handle objects :-) mathew -- --0016367fbb7c9d460f04963c5b92 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Nov 29, 2010 at 19:09, Eric Hodel <drbrain@segment7.net> wrote:
=
Chunks 1, 3, 4, 5, 6 and possibly 2 will conflict with my= patch.

Does anyone else want to take= a look at the conflicts, or shall I try resolving my changes with the late= st commit and coming up with another patch?
=A0
Your example for this could b= e simpler. =A0I would write:

case response
when Net::HTTPSuccess then
when Net::HTTPRedirection then
when Net::HTTPServerError then

I spend = too much time writing Java where switch/case can't handle objects :-)
=A0

mathew
--
<URL:http://www.pobox.com/~meta/>
--0016367fbb7c9d460f04963c5b92--