Boost logo

Boost :

Subject: Re: [boost] Ternary logic programming
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2015-07-03 05:33:19


On 02-07-2015 02:49, Niall Douglas wrote:
> On 1 Jul 2015 at 15:53, charleyb123 . wrote:
>

> Out of interest, what do you think of my free function ternary logic
> programming:
>
> tribool t;
> if(true_(t)) { /* true */ }
> else if(false_(t)) { /* false */ }
> else if(unknown(t)) { /* other state */ }

Is the last "if" really needed vs. just an "else"?

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk