[Koha-bugs] [Bug 29746] Add a handy Koha::Result::Boolean class

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 3 15:48:43 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29746

--- Comment #12 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #9)
> +use overload bool => \&as_bool;
> 
> I didn't notice that the first time I read this patch, and it's awesome!
> 
> I will provide you a QA feedback soon.

Thank you! That was my feeling when I noticed overload existed as well :-D

(In reply to Jonathan Druart from comment #11)
> I don't think "Koha::Result::Boolean" is good. What is then a Koha::Result?

Right, I was not sure about the name. Maybe I'm going too far thinking we could
need another result types. I'd go with whatever to be honest. Koha::Result
sounds correct as well.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list