CSE 341 Spring 2015 : Unit 5


Unit 5 Reading


Introduction to Racket

Racket Definitions, Functions, Conditionals

Racket Lists

Syntax and Parentheses

Parentheses Matter! (Debugging Practice)

Dynamic Typing


Local Bindings

Toplevel Bindings

Mutation with set!

The Truth About Cons

mcons For Mutable Pairs

Delayed Evaluation and Thunks

Avoiding Unnecessary Computations

Delay and Force

Using Streams

Defining Streams


Macros: The Key Points

Tokenization, Parenthesization, and Scope

Racket Macros With define-syntax

Variables, Macros, and Hygiene

More Macros Examples

341 Main