110 likes | 133 Views
Scheme Language. By Ratapong Satyapan 49541196. Scheme Background. Scheme was developed in the 1975 by - Guy L. Steele Jr. - Gerald Jay Sussman Scheme was originally called "Schemer“, like another Lisp - derived languages such as Planner or Conniver. Scheme Description.
E N D
Scheme Language By Ratapong Satyapan 49541196
Scheme Background • Scheme was developed in the 1975 by- Guy L. Steele Jr.- Gerald Jay Sussman • Scheme was originally called "Schemer“, like another Lisp-derived languages such as Planner or Conniver.
Scheme Description • Scheme is the first dialect of Lisp to fully support lexical scoping, first-class procedures, and continuations. • Scheme is now a complete general-purpose programming language, though it still derives its power from a small set of key concepts.
Distinctive Characteristics • It is a minimalist language. The language standard is only about 50 pages, including all semantics for the language core. • All data and functions share a common namespace instead of Common Lisp functions and data have separate namespaces. So it can’t have same variable and function name.
Design Goals • Mainly used for mathematic calculation. • As a small langage with simple syntax and semantics, Scheme is well suited to educational applications, such as courses in functional programming.
Scheme Characteristics • Scheme function can be the values of expressions, elements of lists, assigned to variables, and passed as parameters. • Scheme is small size language. • Exclusive use of static scoping, an its treatment of functions as first-class entities.
Examples (define square(lambda (n)(* n n))) (square 5) ; Output is 25 (square -200) ; Output is 40000 (square 0.5) ; Output is 0.25 (square -1/2) ; Output is 1/4
Useful Applications • Mainly used for calculation and used in educational applications, such as courses in functional programming.
References • http://en.wikipedia.org/wiki/Scheme_(programming_language) • http://www-swiss.ai.mit.edu/projects/scheme/ • http://www.scheme.com/tspl2d/