Re:Show HN: Isomer – An isometric graphics library for HTML5...
by prezjordan on Saturday April 26, 2014 @08:43PM
(#7653357)
You can actually leave out new for Points, and Shape.Prism just returns a new Shape. Prism itself is not actually an object (or constructor for an object), it's just a function.
It could use a little consistency :)
How come the constructor for Point uses new, but the constructors for shapes are just called as regular functions?