[go: nahoru, domu]

Jump to content

Newspeak (programming language)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Akkineniramesh (talk | contribs) at 12:21, 11 September 2009 (Created page with '[http://newspeaklanguage.org/ Newspeak]<ref>[http://bracha.org/newspeak.pdf Gilad Bracha, Peter Ahe, Vassil Bykov, Yaron Kashai and Eliot Miranda. The Newspeak Prog...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Newspeak[1] is a new programming language in the tradition of Self programming language and Smalltalk. Newspeak is highly dynamic and reflective - but designed to support modularity and security. It supports both object-oriented and functional programming.

Like Self programming language, Newspeak is message-based; all names are dynamically bound. However, like Smalltalk, Newspeak uses classes rather than prototypes. As in Beta, classes may nest. Because class names are late bound, all classes are virtual, every class can act as a mixin, and class hierarchy inheritance falls out automatically. Top level classes are essentially self contained parametric namespaces, and serve to define component style modules, which naturally define sandboxes in an object-capability style. Newspeak was deliberately designed as a principled dynamically typed language.