- Ferite
infobox programming language
designer = Chris Ross
latest_release_version = 1.1.0pr
latest_release_date =7 January 2006
operating_system =Cross-platform
paradigm = object-oriented
year = 2000
typing = Dynamic, weak (duck typing )
license =BSD License
website = http://ferite.org/
influenced_by = C,C++ , Java,PHP , Python, Ruby, SchemeFerite is a small robust
scripting language providing a straightforward application integration, the ability for the API to be extended very easily. The design goals of Ferite are to make a clean, cross-platform language which is easy to embed and easy to extend and provides support for existing and upcoming standards. [ [http://ferite.org/about.html The Ferite Programming Language ] ]The main influences for Ferite are: Java for objects, C and
PHP for functions, Scheme for closures, Ruby for block calling, andC++ for namespaces. Ferite also features a sane loose typing mechanism and a small set ofApplication programming interface s (APIs). Overall Ferite should be considered a curly-brace language. [ [http://ferite.org The Ferite Programming Language ] ]Examples
Basic "Hello World" program:
uses "console";Console.println( "Hello World" );Using closures/lambda functions:
// Define some numbers:number x = 10, y = 15, z = 30;// A closure to add those numbers:object o = closure { return x + y + z;};
// Use the closure:Console.println(o.invoke());
// Change the numbers:x = 5; y = 10; z = 5;
// Use the closure again:Console.println(o.invoke());
Iterating through an array:
Array.each( [ 1, 2, 3 ] ) using ( value ) { Console.println( value * 5 );};These are just some of the beginners examples available. [http://pixelcarnage.com/Projects/Ferite/003/HTML/Documents/BeginnersExamples.html]
References
External links
* [http://ferite.org/ Ferite home page]
* [http://ferite.org/team.html The team behind ferite]
* [http://pixelcarnage.com/articles/ferite/love-after-php/ An introduction to Ferite]
* [http://pixelcarnage.com/articles/ferite/ferite-singletons/ Creating singleton classes in Ferite]
* [http://99-bottles-of-beer.net/language-ferite-1282.html Ferite at 99 Bottles of Beer]
* [http://blueronin.net/category/ferite/ Various Ferite articles]
Wikimedia Foundation. 2010.