From: Josh Cheek Date: 2013-04-22T07:20:02+09:00 Subject: Re: Tap method : good or bad practice ? --089e01228d685bac5504dae65ad9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Apr 21, 2013 at 12:56 AM, S=E9bastien Durand = wrote: > > What is the Ruby way of doing this ? Is it common to use this > trap method ? Thank you very much for your help (I'm new to Ruby) ! > > I wouldn't do that, unless I had a need to inline it (e.g. writing a one-liner on the the command line), but I also wouldn't care enough to change it if I saw it in my codebase. It is totally irrelevant next to concerns about object boundaries and mutability, so it seems to me that any disagreement is just bikeshedding. On Sun, Apr 21, 2013 at 1:20 PM, Love U Ruby wrote: > Can on the same context anyone explain the difference between `tap` and > `inject` ? > > Are the docs unclear? --089e01228d685bac5504dae65ad9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Apr 21, 2013 at 12:56 A= M, S=E9bastien Durand <lists@ruby-forum.com> wrote:

What is the Ruby way of doing this ? Is it common to use this
trap method ? Thank you very much for your help (I'm new to Ruby) !



I wouldn&= #39;t do that, unless I had a need to inline it (e.g. writing a one-liner o= n the the command line), but I also wouldn't care enough to change it i= f I saw it in my codebase. It is totally irrelevant next to concerns about = object boundaries and mutability, so it seems to me that any disagreement i= s just bikeshedding.


On Sun, Apr 21, 2013 at 1:20 PM, Love U Ruby=A0= <lists@ruby-fo= rum.com>=A0wrote:
Can = on the same context anyone explain the difference between `tap` and
`inject` ?


Are the docs unclear?
--089e01228d685bac5504dae65ad9--