Kite (programming language)

From Wikipedia, the free encyclopedia

Kite
Paradigm functional, object oriented
Appeared in 2006
Designed by Mooneer Salem
Latest release 1.0b2/ May 28, 2008
Typing discipline dynamic, weak
Website http://kite-language.org/

Kite is a programming language that appeared in late 2006. Its goals are to be fast and small, both in development time and actual running time. It does this by combining both object oriented and functional paradigms in the language syntax. One special feature is its use of the pipe character (|) to indicate function calls, as opposed to the period (.) or arrow (->) in other languages. Properties are still dereferenced using the period.

[edit] "Hello World" in Kite

Hello World is simply a single line (excluding comments and blank lines):

#!/usr/local/bin/kite

"Hello World"|print;

Demonstrating simple inheritance:

class a [
    property m1,
    construct [
        this.m1 = "foo";
    ]
];

class b from a [
       property m2,
       construct [
           this.m2 = "bar";
       ],
       method message() [
           (this.m1 + this.m2)|print;
       ]
};

(make b)|message;

[edit] External links