Axel Rauschmayer (2014-01-12T11:45:19.000Z)
domenic at domenicdenicola.com (2014-01-17T23:45:13.149Z)
Nice! Should the operator (case) definitions really be inside the class? E.g., conceptually, number + point2d does not belong to a single class, it belongs to both. Hence, I’d use something more like a (global) function declaration: ``` function number + point2d (a, b) { return point2d(a + b.x, a + b.y); } ``` Or, possibly: ``` function + (a :: number, b :: point2d) { return point2d(a + b.x, a + b.y); } ```