|
Boost : |
From: John Max Skaller (skaller_at_[hidden])
Date: 2001-08-16 17:38:30
williamkempf_at_[hidden] wrote:
> > > It's not really possibly to shorten things beyond this.
> > template<class Action, class Pred> struct caction
> For specific uses this works, for a generic concept it's got some
> major short comings. You can't have multiple conditions/predicates
> or varying actions, etc.
Of course. Its also a bad idea to wrap too much up.
The best way to design components is to build them out
of small, well defined primitives with a few well defined
combination techniques. The prototypical example is formal
logic, in which systems are constructed from axioms
and rules of inference: the same idea, however, is
applicable in software design.
-- John (Max) Skaller, mailto:skaller_at_[hidden] 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 New generation programming language Felix http://felix.sourceforge.net Literate Programming tool Interscript http://Interscript.sourceforge.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk