Top Banner
SCHEME Functional programming language SA12225089 王知践
10

Scheme language brief introduction

Jul 31, 2015

Download

Technology

Carpen ZJ Wang
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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