Alef (programming language)

From Wikipedia, the free encyclopedia

The Alef programming language was designed by Phil Winterbottom of Bell Labs as part of the Plan 9 operating system.

In a February 2000 slideshow, Rob Pike noted: "…although Alef was a fruitful language, it proved too difficult to maintain a variant language across multiple architectures, so we took what we learned from it and built the thread library for C."

Contents

[edit] Example

This example was taken from [1]. The piece illustrates the use of tuple data type.

(int, byte*, byte) 
func() 
{ 
 return (10, "hello", ’c’); 
}
void 
main() 
{
  int a; 
  byte* str; 
  byte c; 
  (a, str, c) = func(); 
}

[edit] See also

[edit] Trivia

[edit] References


In other languages