Re: cocoa-dev digest, Vol 1 #999 - 7 msgs
Re: cocoa-dev digest, Vol 1 #999 - 7 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #999 - 7 msgs
- From: Ondra Cada <email@hidden>
- Date: Fri, 21 Dec 2001 14:41:29 +0100
Jeff,
>
>>>>> Jeff Koftinoff (JK) wrote at Thu, 20 Dec 2001 23:24:27 -0800:
JK> >Except for the poor developer who has to maintain your code latter. If i
JK> >had to edit code like that the first thing i would do is switch
JK> >everything
JK> >back to normal and remove the macros.
JK> >
JK> >vince
JK>
JK> Unfortunately for you, ANSI C++ defines the very same operator names
JK> except for == and = without macros.
...
JK> {
JK> bool a,b,c;
JK> a and_eq b;
JK> a xor_eq c;
JK> }
JK>
JK> is completely valid standard code.
Valid it surely is. As for its _readability_ though, I would agree with
Vince, and should I have to maintain such code, I'd start with a simple sed
script ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc