[Development] Implementation of qFuzzyCompare and zero values

Thiago Macieira 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 
guest.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130726/beb9894a/attachment.sig>


More information about the Development mailing list