[Development] Implementation of qFuzzyCompare and zero values
thiago.macieira at intel.com
Fri Jul 26 17:39:55 CEST 2013
On sexta-feira, 26 de julho de 2013 10:53:19, Juan Navarro wrote:
> In my opinion, if a function requires the user to provide a magnitude value
> (for whatever reason), then that value should be explicitly given in an
> additional parameter, not implicitly given as an added value to the already
> given parameters... I think that's a very bad design decision, which finds
> it's own limitations very fast with the example I gave in the first mail:
> working with magnitudes of 1e12, I cannot just call qFuzzyCompare(a + 1e12,
> b + 1e12), because a or b might be -1e12!
Well, if you want to add a qFuzzyCompare overload with three parameters and
deprecate (by documentation only, no Q_DECL_DEPRECATED) the current one, be my
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Development