• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 1 #999 - 7 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • operator and
      • From: Jeff Koftinoff <email@hidden>
References: 
 >Re: cocoa-dev digest, Vol 1 #999 - 7 msgs (From: Jeff Koftinoff <email@hidden>)

  • Prev by Date: Re: Is an just allocated object allways set to autorelease? What about my subclasses?
  • Next by Date: Re: Is an just allocated object allways set to autorelease? What about my subclasses?
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #999 - 7 msgs
  • Next by thread: operator and
  • Index(es):
    • Date
    • Thread