Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Io

< >

Io is a programming language created in 2002 by Steve Dekorte.

#449on PLDB 22Years Old 2kRepos
Homepage · REPL · Try It Online · Wikipedia · Twitter · Docs

Io is a pure object-oriented programming language inspired by Smalltalk, Self, Lua, Lisp, Act1, and NewtonScript. Io has a prototype-based object model similar to the ones in Self and NewtonScript, eliminating the distinction between instance and class. Like Smalltalk, everything is an object and it uses dynamic typing. Read more on Wikipedia...


Example from Riju:
"Hello, world!" println
Example from hello-world:
"Hello World\n" print
Example from Wikipedia:
factorial := method(n, if(n == 0, return 1) res := 1 Range 1 to(n) foreach(i, res = res * i) )

Language features

Feature Supported Example Token
MultiLine Comments
Integers
// \d+
Floats
// (\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Assignment :=
Print() Debugging print
Line Comments
// A comment
//
Operator Overloading
Comments
Semantic Indentation X

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll