[Koha-devel] Bug 18539 - Forbid Koha::Objects->find calls in list context
Francesco Rivetti
oha at oha.it
Wed Dec 13 16:08:11 CET 2017
On 13. des. 2017 15:56, Julian Maurice wrote:
> My question is: why the solution to this problem was to forbid calls in
> list context while we could simply return an explicit undef?
> It forces us to write 'scalar' in front of a call that should always
> return a single value, and in my opinion it's a "code smell"
I completely agree with this.
Francesco
More information about the Koha-devel
mailing list