Commit f0884d25 authored by Dan Grossman's avatar Dan Grossman
Browse files

section 1 code

parent d2d1a86b
(* Section 1: Some Errors *)
(* This program has several errors in it so we can try to debug them. *)
let x = 34
let y = x + 1
let z = if y > 0 then false else x < 4
(* This is still bad style, equivalent with:
not (y > 0) && x < 4 *)
let q = if y > 0 then 0 else 42
let w = 0
let letter = 34
let v = 4.0 /. 2.0
let u = x / (w + 1)
(* Can't have let bindings start with numbers *)
let cse341 = true
(* Section 1: Some Errors *)
(* This program has several errors in it so we can try to debug them. *)
let x = 34
y = x + 1
let z = if y then 34 else x < 4
let q = if y > 0 then 0
let w = 0
let let = 34
let v = 4.0 / 2.0
let u = x / w
let 0cse341 = true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment