News for hackers. Stuff that matters.
Re:Show HN: Isomer – An isometric graphics library for HTML5... by eurleif on Saturday April 26, 2014 @08:36PM (#7653336)
> iso.add(Shape.Prism(new Point(0, 0, 0)));

How come the constructor for Point uses new, but the constructors for shapes are just called as regular functions?

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 :)