Is there any significant difference between modules and packages?
Other than the deprecation, of course.
Are there any significant advantages to packages over modules? If so,
what are they.
Peter Seibel says that the Perl module system is the closest to Lisp's
package system. I don't know enough about it to agree or disagree, but
with the exception of having to be careful about using (in-package) I
find that the two are pretty close.
ccc31807 <carte...@gmail.com> writes:
> I read that modules are deprecated.
> Is there any significant difference between modules and packages?
> Other than the deprecation, of course.
> Are there any significant advantages to packages over modules? If so,
> what are they.
> Peter Seibel says that the Perl module system is the closest to Lisp's
> package system. I don't know enough about it to agree or disagree, but
> with the exception of having to be careful about using (in-package) I
> find that the two are pretty close.
> CC.
You can find here[1] a short description on the differences between
packages, modules and systems.
> Is there any significant difference between modules and packages?
> Other than the deprecation, of course.
> Are there any significant advantages to packages over modules? If so,
> what are they.
Well, the main advantage is that packages exist in CL, and modules don't.
CL provides a couple of functions that you could use to ask for a module to be loaded (REQUIRE) and signal that a module has been loaded (PROVIDE), but the details of what exactly a module is and how to load it are implementation-dependent, so you're on your own there.
Packages, on the other hand, are pretty well specified.
Alberto
-- Give a man a fish and he will eat for one day. Teach him programming,
and he will develop a multi tasking intelligent planning algorithm to
optimize the route of a fleet of deep sea fishing boats, with
real-time GPS tracking, weather satellite link, automatic analysis of
fish market prices, the whole thing controlled by an AJAX-enabled web
interface. In the meantime, he will die of hunger.