|
Article on other languages:
|
In computer science, Clean is a general-purpose purely functional computer programming language.
FeaturesThe Language Clean is heavily influenced by Haskell, and has therefore properties sharing with Haskell: Referential transparency, List comprehension, Guards, Garbage collection, Higher order functions & Currying and Lazy evaluation. An IDE is included into the Clean distribution. Clean has support another platforms. Clean has alternative to monads, which are regular in the Haskell language, an Uniqueness typing system deals with unduplicatable resources such as input and output. ExamplesHello world (Store as hello.icl): module hello module factorial module fibonacci Infix operator: (^) infixr 8 :: Int Int -> Int (^) x 0 = 1 (^) x n = x * x ^ (n-1) The type declaration states that the function is a right associative infix operator with priority 8: this states that How Clean worksComputation is based on graph rewriting and reduction. Constants such as numbers are graphs and functions are graph rewriting formulas. This, combined with compilation to native code, makes Clean programs relatively fast, even with high abstraction. Compiling
Earlier Clean system versions were written completely in C, thus avoiding bootstrapping issues. PlatformsClean is available for Microsoft Windows. It is also available with limited input/output capabilities and without the "Dynamics" feature for Apple Macintosh, Solaris and Linux. LicenseClean is dual licensed: it is available under the terms of the GNU LGPL, and also under a proprietary license. ReferencesSee alsoExternal links |
|||||||||||||||||||||||||||||||
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net