SHORT Re: Suggestion: "fix" assert(obj)

Georg Wrede georg at nospam.org
Sun Jun 17 06:00:35 PDT 2007


Bill Baxter wrote:
> Georg Wrede wrote:
> 
>> Sure, we can learn to write if(o) and assert(o !is null). 
> 
>> Maybe this discussion should be deferred until nothing big is going on in D.
> 
> Aww.  But we have to keep ourselves entertained *somehow* while Walter 
> is off implementing const.  :-)

:-)

Besides, it's not insurmountable to learn to "use this there and that 
otherwise".

My main problem was that we should strive to keep the language clean and 
consistent. And this was a prime example of frivolously destroying that 
for a truly third rate reason.

---

PS, if I ever start seeing code like

   if(o) assert(o);

then I will puke.



More information about the Digitalmars-d mailing list