[Gecode] Another abstraction sets...

Christian Schulte schulte at imit.kth.se
Fri Jul 16 14:51:43 CEST 2004


...how about having card() (or size() as it is called for integers). A look
to branch.cc makes it obvious.

You really have to constantly ask yourself: have I written a similar piece
of code before? maybe even three times? Then it ought to become an
abstraction. 

Computer science is the science of abstraction!

Christian

--
Christian Schulte, http://www.imit.kth.se/~schulte/ 




More information about the gecode-users mailing list