Nu (programming language)
{{Expansion depth limit exceeded| left =
| #default = }}
{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}
| [[File:{{Expansion depth limit exceeded| speedy = Ambox speedy deletion.png
| delete = Ambox deletion.png
| content = Ambox content.png
| style = Edit-clear.svg
| move = Ambox move.png
| protection = Ambox protection.png
| notice
| #default = Ambox notice.png
}} | {{Expansion depth limit exceeded| left = 20x20px
| #default = 40x40px
}} |link=|alt=]]
}}{{Expansion depth limit exceeded| left =
| #default = |
{{{Expansion depth limit exceeded}}} |
[[Category:{{Expansion depth limit exceeded|{{{Expansion depth limit exceeded}}}|{{{Expansion depth limit exceeded}}}}}]]
{{
| type = style | image = | imageright = | style = | textstyle = | text = This article may require cleanup to meet Wikipedia's quality standards. Please improve this article if you can. (April 2008) | small = | smallimage = | smallimageright = | smalltext = }}[[Category:{{Expansion depth limit exceeded|{{{Expansion depth limit exceeded}}}|{{{Expansion depth limit exceeded}}}}}]]
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 the iPhone.
The language was first announced at C4[1], the conference for indie Mac developers hold on August 2007.
Example code
This Nu code defines a simple complex numbers class.
<source lang="lisp">
(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))
</source>
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.
See also
External links
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...