Consider the following
def sum(x):
res = 0
for i in range(x+1):
res = res + i
return res
int sum(int x){
int res = 0;
for (int i = 1; i <= x; i ++){
res += i;
}
return res;
}
let rec sum x =
if x = 0 then 0
else x + (sum (x-1))
(define (sum x)
(if (= x 0) 0
(+ x (sum (- x 1)))))
What is a language?
Why is language important?
How do we design a language?
How do we implement a language?
Is [->+<] a sentence?
Time: 010x: 11:00 - 12:15, 020x: 12:30 - 1:45
Notes will be released along with slides
Common things people miss on syllabus
Programming languages are like spoken languages
Why do so many languages exist?
End Goal
Ask Questions
Make Friends
Start Projects Early
Feel Emotions
Expect to get things wrong