Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

require and *modules* are deprecated in common lisp?

Common Lisp HyperSpec says that require and ****modules**** are deprecated.

But I still see we use require all the time. What should we use?

like image 376
yehnan Avatar asked Jul 02 '10 09:07

yehnan


1 Answers

They were deprecated long ago. The standard was published in 1994. What were the consequences? None, since no new standard has been published and no new standard is being worked on.

So, if your Common Lisp implementations provide a useful definition and implementation of PROVIDE, REQUIRE and *MODULES*, then use it.

There are other tools that care about loading and creating libraries and applications (usually called 'Systems'). Often these have some kind of interface, so that (REQUIRE 'SOME-SYSTEM) loads that system and so that after loading that system it has been 'provided'.

like image 57
Rainer Joswig Avatar answered Oct 01 '22 10:10

Rainer Joswig