4 ms·
I would not recommend Scheme as a first language. The syntax is too far from what we normally use, so it provides a barrier to learning. Ruby: a = 7 * 8 +
by techiferous 17y ago
I would not recommend Scheme as a first language. The syntax is too far from what we normally use, so it provides a barrier to learning.
Ruby:
a = 7 * 8 + 10
Scheme:
(let ((a (+ (10 (* 7 8)))))
Ruby:
print "you are big" if height > 80
Scheme:
(if (> height 80) (display "you are big"))
- jrockway 17y agoLisp: (loop for i from 1 to 10 collect i) Ruby: [1..10].collect { |x| x } But anyway, it turns out that people are not born with an inherent ability to parse infix operators. Infix is just as arbitrary as prefix or postfix. Anyone, even a kid, will figure the syntax out either way. (Infix leads to confusing bugs, like "why doesn't 'foo < bar < baz' work?" Prefix eliminates this ambiguity.)