assert(obj) is an atrocity
    bearophile 
    bearophileHUGS at lycos.com
       
    Sat Nov 19 10:33:34 PST 2011
    
    
  
Alex R. Petersen:
> I just thought it was worth mentioning how calling the invariant in 
> assert can lead to very unexpected results.
Python Zen says "Explicit is better than implicit.". Calling the invariant with an explicit syntax is better than calling it implicitly with an assert syntax that looks like it does something different.
Bye,
bearophile
    
    
More information about the Digitalmars-d
mailing list