Kogut

Kogut is an impure functional, object-oriented programming language with very innovative syntax intented to remain simple, avoid verbosity, and yet introduce enough syntactic sugar to keep code short. Kogut was conceived as a functional scripting language that was also capable of being used for larger projects. Although Kogut is object-oriented, it is not so in the traditional sense of message passing; rather, it is more like the way object orientation works in CLOS or Dylan. The separation between functions and methods is seamless, and methods can be scoped in modules completely separate from the datatypes.

Hello World

  WriteLine "Hello, world!" 

Examples

The following function tail-recursively calculates the factorial of a number, using Kogut's loop construct, which is similar to a named let in Scheme but claimed to be more flexible and easier to use:
  let Factorial (x > 0) {     loop x 1 [        0   acc {acc}        cur acc {again (cur-1) (acc*cur)}     ]  }; 

Implementations

Kogut was designed and implemented by Marcin 'Qrczak' Kowalczyk. The most current implementation is Kokogut, which compiles Kogut programs to C, allowing C snippets to be integrated seemlessly into Kogut code. Kokogut is hosted at Sourceforge and is licensed under the GNU GPL with a linking exception allowing applications compiled with Kokogut to not be distributed with the Kokogut sourcecode and not be under the GPL.

External links

 

<< PreviousWord BrowserNext >>
california state highway 13
philips van der aa
list of the states of brazil by area
list of the states of brazil by population
list of examples in general topology
zaporozhets
bruce
canonical bundle
denver pyle
list of the states of brazil by population density
panavia aircraft gmbh
counter intuitive
holston river
inner wheel club
confrontation (album)
helen cadman
higgins armory
57 mnemosyne
1492: conquest of paradise (album)
mask (album)
58 concordia
letts
rebekah teasdale
59 elpis
clover maitland
60 echo
beat the teacher
trojan war cycle
cypria
61 dana
trujillo, spain
pharrell williams
william winde
don byron
i love the 90s
62 erato
jean fouquet
castle bromwich hall gardens
reagan's coattails
dieter althaus
63 ausonia
cracovia vodka
andrej bajuk
conull set