[GiNaC-devel] removing the evil

Alexei Sheplyakov varg at theor.jinr.ru
Tue Jul 15 10:31:40 CEST 2008


Dear Jens,

On Tue, Jul 15, 2008 at 09:01:01AM +0200, Jens Vollinga wrote:

> It sounds like a big API change with no apparent benefits for me.

The benefits are 

1. One can compare expressions in a natural way (with operator==,
operator==, etc) instead of GiNaC-specific is_equal().

2. (a consequence of 1) No bugs like this:

ex e1, e2; 
// do some calculation
if (e1 == e2) { // gotcha: this is always true.
	// do something
}

3. (a consequence of 1) STL containers and algorithms "just work" with
GiNaC classes.

The changes to achive this are not really big.

Best regards,
	Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20080715/ec12d3ff/attachment.sig 


More information about the GiNaC-devel mailing list