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.
(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.