ClojureBridge / curriculum

Curriculum for the ClojureBridge workshop series.
https://clojurebridge.github.io/curriculum/
482 stars 199 forks source link

slides: avoid "//" and ";;" on infix versus prefix slide #141

Closed davidchambers closed 9 years ago

davidchambers commented 9 years ago

Closes #129

@kpfell rightly pointed out that the different line-commenting syntax of JavaScript and Clojure is a distraction.

Before:

// infix
1 + 2 * 3 / 4 - 5
;; prefix
(- (+ 1 (/ (* 2 3) 4)) 5)
// infix
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9
;; prefix
(+ 1 2 3 4 5 6 7 8 9)

After:

Infix:

1 + 2 * 3 / 4 - 5

Prefix:

(- (+ 1 (/ (* 2 3) 4)) 5)

Infix:

1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9

Prefix:

(+ 1 2 3 4 5 6 7 8 9)
k4y3ff commented 9 years ago

:+1:

bridgethillyer commented 9 years ago

:+1: