http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7757
--- Comment #13 from Kyle M Hall <[email protected]> --- > About parameters: I think we should define a rule for new subs, about how we > pass parameters. I think passing hashes would gracefully solve this kind of > problem. So what about a rule like = identifier/mandatory fields are passed > directly, others are passed through a hash > The ModBasketHeader would then become: > ModBasketHeader($basketno, > { basketname => $basketname, > basketnote => $basketnote, > basketbooksellernote => $basketbooksellernote, > basketcontractnumber => basketcontractnumber, > basketbooksellerid=> $basketbooksellerid} > ); > > Kyle, if you agree/like this idea, I can start a discussion on koha-devel ! Paul, I am 110% behind this idea. I've been using hashes for parameter passing in most of my new code. I think it makes it much easier to extend subroutines after the fact. Right new we have subs that look like sub( $param1, $parm2, undef, $param3, 1, $param4 ) and this would make our code far better. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
