28 Aug
2013
28 Aug
'13
10:52 p.m.
2013/8/28 mathog <mathog@...1176...>:
It is a trade off, with in2px being close or at the minimal unambiguous representation of the action of the method. "in2px" says what happens, and it hides all other details. The next programmer who sees the code, will not need to refer to the manual to determine the direction of the conversion.
I think we are arguing about the bike shed at this point. https://en.wikipedia.org/wiki/Parkinson%27s_law_of_triviality
The point is that these conversions between raw floating point numbers shouldn't be there at all. Instead, the code should be modified to use the Inkscape::Util::Quantity class, which contains both the number and the unit in which it is expressed.
Regards, Krzysztof