On 06/04/11 05:11, Robin Sheat wrote:

> Oh, something else that's recommended that I tend to do is not export
> anything by default, requiring the module to be included like:
>  use C4::Accounts qw/ get_users_balance /;
> mostly this prevents surprising things getting into your namespace. This
> is more a style suggestion though.
More than style I think it generally accepted as good practice and
should be encouraged. One of the downsides of just using default export
lists apart from general namespace pollution is it gets hard to know
what you are using from module X (and sometimes on further investigation
it turns out to be nothing!)
Colin

-- 
Colin Campbell
Chief Software Engineer,
PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 845 557 5634 (phone)
+44 (0) 7759 633626  (mobile)
[email protected]
skype: colin_campbell2

http://www.ptfs-europe.com
_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to