An Introduction to Limbo

Limbo is the language in which one writes Inferno programs. Moreover, all the programming interfaces presented by Inferno are expressed in Limbo. To learn about programming in Inferno, we must therefore begin by learning about Limbo.

This chapter introduces the basics of Limbo programming. It uses simple and familiar programming problems to focus on Limbo itself; later chapters will build on these basics to explore the more unusual aspects of the Inferno environment.

Limbo draws ideas from a variety of other languages and adds a few of its own, so no particular language is assumed as a prerequisite of this chapter. However, this is not an introduction to computer programming; we assume you are comfortable programming in a procedural language such as C, C++, or Pascal.

Links to chapter sections

2.1 Hello, world
2.2 Simple data and variables
2.3 Characters and strings
2.4 Lists
2.5 Arrays
2.6 References, values, and slices
2.7 Tuples
2.8 ADTs
2.9 Reference ADTs
2.10 I/O
2.11 Discussion
2.12 Further Reading

next