Kaleidoscope (programming language)

The Kaleidoscope programming language is a constraint programming language embedding constraints into an imperative object-oriented language. It adds keywords always, once, and assert..during (formerly while..assert) to make statements about relational invariants. Objects have constraint constructors, which are not methods, to enforce the meanings of user-defined datatypes.

There are three versions of Kaleidoscope which show an evolution from declarative to an increasingly imperative style. Differences between them are as follows.

Kaleidoscope'90Kaleidoscope'91Kaleidoscope'93
Constraint EvaluationLazyEagerEager
VariablesHold streamsHold streamsImperative
Concurrent ConstraintsStrictStrictNon-strict
SyntaxSmalltalk-likeAlgol-likeAlgol-like
Constraint ModelRefinementRefinementPerturbation
Method DispatchingSingleMultipleMultiple
AssignmentAs a constraintAs a constraintDestructive
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.