Loading AI tools
Programming language From Wikipedia, the free encyclopedia
Flavors,[1] an early object-oriented extension to Lisp developed by Howard Cannon at the MIT Artificial Intelligence Laboratory for the Lisp machine and its programming language Lisp Machine Lisp, was the first programming language to include mixins.[2] Symbolics used it for its Lisp machines, and eventually developed it into New Flavors; both the original and new Flavors were message passing OO models. It was hugely influential in the development of the Common Lisp Object System (CLOS).[3]
Implementations of Flavors are also available for Common Lisp.[4]
New Flavors replaced message sending with calling generic functions.
Flavors offers :before
and :after
daemons with the default method combination (called :daemon
).
Flavors offers a few features not found in CLOS:
DEFFLAVOR
options: :required-methods
, :abstract-flavor
, :mixture
.SEND
function for sending messages.CLOS offers the following features not found in Flavors:
EQL
).Flavors | CLOS |
---|---|
flavor | class |
component flavor | superclass |
dependent flavor | subclass |
local component flavor | direct superclass |
local dependent flavor | direct subclass |
generic function | generic function |
combined method | effective method |
method option | method qualifier |
instance | instance |
instance variable | slot |
ordering of flavor components | class precedence list |
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.