Hacker News new | ask | show | jobs
by adrian_b 2654 days ago
Sorry, there were a couple of typos in the reply above.

I want just to clarify more the last 2 sentences for those less familiar with mathematical jargon. The reference the the field of the complex numbers means that you can multiply 2 complex numbers, i.e. compose 2 geometric transformations consisting of scaling + rotation. You cannot multiply neither two 2-dimensional vectors nor two points.

In conclusion, in a programming language one should have different data types for points, vectors and complex numbers, because each type allows different operations and attempting to pass them as arguments to an inappropriate function should be an error.