RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
250 stars 72 forks source link

Refactoring using List::Util::pairs #3660

Closed stefanhaerter closed 2 months ago

stefanhaerter commented 2 months ago

I assume that in at least a few places iterations over a hash are done where key and value are processed. In this places, List::Util::pairs could be a viable refactoring option.

stefanhaerter commented 2 months ago

Putting this on the wishlist and closing it.

stefanhaerter commented 2 months ago

Provided a small example in #3671

bschmalhofer commented 2 months ago

I think that we won't do a full refactoring where all loops over hashes are changed. So I think that having an example is good enough for now. New code can then make use of List::Util::pairs().

stefanhaerter commented 2 months ago

Agree, sounds like a good idea.