by yawaramin · 5y ago · 0 comments
In this paper the authors describe how students actually grasped fundamental concepts better in Schema than in Java, despite being taught both throughout the course of the semester.
Their original lisp:
( let ([ x 3])
( let ([ f ( lambda (y ) (+ x y ))])
( let ([ x 5])
(f 10))))
Java: { int x = 3;
{ Function<Integer,Integer> f = y -> y + x;
{ int x = 5;
{ return f.apply(10); }}}}
They argued that Java is less concise so they couldn't have as many examples, but I feel that example gets the point across just as well and it has comparable number of characters.