Nu_(programming_language)

Nu (programming language)

Nu is an interpreted object-oriented programming language, with a LISP-like syntax, created by Tim Burks as an alternative scripting language to program Mac OS X through its Cocoa API.

There is also a language implementation for Linux, and Apple Inc. iPhone.

Example code

This Nu code defines a simple complex numbers class.

(class Complex is NSObject

 (ivar (double) real
       (double) imaginary)

 (- initWithReal:(double) x imaginary:(double) y is
   (super init)
   (set @real x)
   (set @imaginary y)
   self))

The example is a basic definition of a complex number (it just defines the instance variables, and a method to initialize the object). It evidences the similarity between the Nu code and the equivalent Objective-C code; it evidences also the similarity with Ruby.

External links

See also

Search another word or see Nu_(programming_language)on Dictionary | Thesaurus |Spanish
  • Please Login or Sign Up to use the Recent Searches feature
FAVORITES
RECENT