Dictionary entry
CLOS
Last updated
Meaning
proper nounpropercomputingspecialist
A system for object-oriented programming that is part of the Common Lisp language.
Grammar: Used as a name, so it usually has no article: CLOS provides classes and methods.
Patterns
- CLOS provides something
- use CLOS to do something
- implement something in CLOS
The team rewrote the simulation in CLOS to take advantage of multiple dispatch.
In CLOS, classes and generic functions are defined separately.
She gave a talk on how CLOS handles inheritance and method combination.
Common combinations
- CLOS class
- Each CLOS class can inherit behavior from more than one parent class.
- CLOS generic function
- A CLOS generic function chooses which method to run based on the arguments it receives.
- CLOS method
- You can add a new CLOS method without changing the existing code.
- Common Lisp Object System
- The full name of CLOS is the Common Lisp Object System.
Word family
- Common Lisp proper noun
- The programming language that includes CLOS as one of its standard features.
Commonly confused: CLOS or Clojure? CLOS or close?
CLOS vs Clojure
Clojure is a different programming language, also a Lisp dialect, but it is not the same as CLOS.
CLOS vs close
Close is an ordinary English word meaning 'near' or 'to shut'; CLOS is an acronym and is pronounced letter by letter.
Practice
What does the acronym CLOS stand for in computing?
Choose one answer.
CLOS is the standard object system for Common Lisp, so 'Common Lisp Object System' is correct. The other options are made-up expansions that sound technical but are not used in the Lisp community.
Make it your own
Write a sentence using “CLOS”, then check it and compare it with the examples above.