Scheme language brief introduction

10
SCHEME Functional programming language SA12225089 王知践

Transcript of Scheme language brief introduction

Page 1: Scheme language brief introduction

SCHEME

Functional programming language

SA12225089

王知践

Page 2: Scheme language brief introduction

OUTLINE

Features

Art of Mathematics

Wonders of magic

Page 3: Scheme language brief introduction

FEATURES

No For

No while

……

Minimalism

Lambda calculus

Block structure

Proper tail recursion

Page 4: Scheme language brief introduction

FEATURES

(*

(+ 2

(* 4 6)

)

(+ 3 5 7)

)

Page 5: Scheme language brief introduction

ART OF MATHEMATICS

E.g. Lambda calculus in mathematic

Page 6: Scheme language brief introduction

ART OF MATHEMATICS

E.g. Lambda calculus in Scheme

((lambda (a b) (+ a b)) 1 2) ( 1 + 2 = 3)

"lambda" as a keyword for introducing a procedure (Anonymous function).

using lambda expressions not as simple procedure instantiations but as "control structures and environment modifiers.

Page 7: Scheme language brief introduction

WONDERS OF MAGIC

Page 8: Scheme language brief introduction

WONDERS OF MAGIC

Page 9: Scheme language brief introduction

WONDERS OF MAGIC

Metalinguistic abstraction

Scheme use itself to implement interpreters

and compilers of itself.

Page 10: Scheme language brief introduction

ESOTERIC