FACTOID # 112: A three-minute local phone call in Ecuador costs 60 U.S. cents, 60 times as much as in Ukraine, Macedonia, Saudi Arabia, Nepal, or Uzbekistan.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > Io (programming language)

Io is a pure object-oriented programming language inspired by Smalltalk, Self, Lisp and NewtonScript. Io has a prototype-based object model similar to the ones in Self and NewtonScript, eliminating the distinction between types and classes. Like Smalltalk, everything is an object and there is dynamic typing. Like Lisp, there are no statements, flow control is achieved using functions, and programs are just data trees. Io uses actors for concurrency, a technique rarely used in modern programming languages. Below are some examples of code in Io:

 //C++ style comments can be used #as can shell-style comments /* and C-style comments */ "Hello world" print //hello world for(i, 1, 10, i print) //prints numbers 1 through 10 x := Object clone //small-talk style object syntax, := used for new slots x = Map clone //when overwriting, = is used. x prettyprint := method( //make a method with no arguments foreach(key, value, write(key, ": ", value, "\n")) //loop through map ) x atPut("hi", 1) //put key-value pair in map x atPut("hello", 2) x prettyprint /* output: hi: 1 hello: 2 */ 

Io was created in 2002 by Steve Dekorte and can be used under a BSD-style licence.


External links


  Results from FactBites:
 
Io programming language - Wikipedia, the free encyclopedia (226 words)
Io is a pure object-oriented programming language inspired by Smalltalk, Self, Lua, Lisp and NewtonScript.
Io uses actors for concurrency, a technique rarely used in modern programming languages.
Io is executed by a small, portable virtual machine.
Io - Wikipedia, the free encyclopedia (283 words)
In Greek mythology, Io (IPA [ˈaɪoʊ] or [ˈiːoʊ]) was the daughter of Inachus, a river god.
Io (voievodal title particle) abbreviation of John (romanian: Ioan, latin:Ioannes), meaning "by the grace of God".
"Io" is the particle preceding the name of Romanian (Wallachian and Moldavian) voievods (rulers) during the middle ages.
  More results at FactBites »

 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.