Re: Git.pm
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 10, 2012, 16:20 UTC
- Message-ID
- <7vr4usnh2q.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CANgJU+W-FJZRtu_4si7nr96KfNe2rzaiUaDC0GiK_WixudvcxA@mail.gmail.com>
demerphq <demerphq@gmail.com> writes:
> Similar logic for Try::Tiny. Why bother with it? It is pretty close to
> a fancy way to write eval { ...; 1 } or do { .... }; It is just one
> more module for people to misunderstand, and then make bugs with.I personally like the approach to stick to bare "eval {}; if ($@) { ... }" sequence, as it is much more explicit and easier to understand what is happening underneath. IOW, I like what I read in demerphq's message.
But it could be that these many people who wrote these different catch/throw things did so for a reason that I am missing, and if that is the case, I am interested to hear what benefit we will get from using them.
"It looks more familiar to people with (your favorite language)" could be it, but then I would not regret missing such a reason ;-)
Thanks.