lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

> In Perl, for instance, you have a module called CGI and another called
> CGI::Carp. You can use CGI without using CGI::Carp, the latter being a
> kind of optional auxiliary module for the former.
>
> Of course, there is nothing wrong with a main module that only imports
> all sub-modules of that package, but this is just one possible design.

I prefer require"socket" not to import socket.http, socket.udp,
socket.url, socket.smtp etc. The user might just want the basic
functionality.

[]s,
Diego.