My Kingdom For ...
    Michiel Helvensteijn 
    nomail at please.com
       
    Thu Feb 21 07:55:18 PST 2008
    
    
  
Gregor Richards wrote:
> /me boos !in again.
> 
> Walter's argument against !in makes perfect sense, and nobody ever
> acknowledges that. 'in' is not a boolean operation, and it wouldn't be
> good for 'in' to return a pointer and '!in' to return a bool. That's
> just silly.
It's silly that 'in' does not return a bool. 'in' and '!in' make perfect
sense together as boolean operators (as in set theory).
Of course, you want to be able to get the pointer too, but I would suggest a
library function for that.
That's readability.
-- 
Michiel
    
    
More information about the Digitalmars-d
mailing list