Questions Columns Rows
GitHub icon

Self

Self - Programming language

< >

Self is an open source programming language created in 1987 by David Ungar.

#280on PLDB 36Years Old 36Repos

Self is an object-oriented programming language based on the concept of prototypes. Self began as a dialect of Smalltalk, being dynamically typed and using just-in-time compilation (JIT) as well as the prototype-based approach to objects: it was first used as an experimental test system for language design in the 1980s and 1990s. In 2006, Self was still being developed as part of the Klein project, which was a Self virtual machine written fully in Self. Read more on Wikipedia...


Example from hello-world:
'Hello World' printLine
(| "Hello World in Self" hello = (| | 'Hello World!' print) |)
Example from Wikipedia:
_AddSlots: (| porsche911 <- sportsCar copy |). porsche911 name:'Bobs Porsche'.

Language features

Feature Supported Token Example
Strings '
'Hello world'
Print() Debugging printLine
Message Passing
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Stats · Sponsor · Traffic · Traffic Today · Day 277 · feedback@pldb.com · Logout