Kite (programming language)

From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search
Kite
Paradigm functional, object oriented
Appeared in 2006
Designed by Mooneer Salem
Stable release 1.0.3 (April 13, 2009)
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.

"Hello World" in Kite

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

#!/usr/local/bin/kite

"Hello World"|print;

Language Features

Logic

decide [
    condition1 [ ... ],
    condition2 [ ... ],
    true       [ ... ]
];

Loops

i = 0;

while (i < 10) [
    i = i + 1;
];

until (i == 0) [
   i = i - 1;
];

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;

External links