I am writing a program that involves working with both polar and Cartesian coordinates.
Does it make sense to create two different structs for each kind of points, one with
Y members and one is with
Or is it too much and it is better to have just one struct with
second as members.
What I am writing is simple and it won't change much. But I am curious what is better from a design point of view.
I am thinking the first option is better. It seems more readable and I will get the benefit of type checking.