4 ms·
I personally like ellipse({axes: {horiz:65, vert:50}, center: {x:60, y:60}}) The function takes a specifiable object, and It's All JSON^tm. It also nests ob
by msg 14y ago
I personally like
ellipse({axes: {horiz:65, vert:50}, center: {x:60, y:60}})
The function takes a specifiable object, and It's All JSON^tm. It also nests objects in objects in a satisfying, somewhat intuitive way.
Argument keywords are not reified and don't require special forms. Instead, they just happen to be the labels of an object.
I can see why you might not want to start with this concept for pedagogical reasons (you have to know a little about defining a Javascript object). But I would think you would want to move to this soon, so you can also get the programmer's special feeling of creating abstractions that make code disappear.