From: David Abrahams (dave_at_[hidden])
Date: 2004-01-05 15:38:00
"Dan W." <danw_at_[hidden]> writes:
> Thornsten, I agree with you 99.325%.
> As a former fellow Eiffel-er, command <-> query separation is my religion.
> If you were to look at my C++ code:
> A) A function that has ANY side-effect whatsoever, inside or outside
> its class, unfailingly returns void.
> B) A function that returns anything but void, not only is it
> unfailingly declared const, but you can bet your life-savings on it,
> it is as pure as pure gets --i.e.: "deep_const".
By the way, I'm a big fan of pure functional programming, even in
C++. None of my previous postings should be construed otherwise.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk