• 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: C question for you old guys ;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question for you old guys ;-)


  • Subject: Re: C question for you old guys ;-)
  • From: Andy Lee <email@hidden>
  • Date: Wed, 11 Jun 2003 10:02:47 -0400

At 3:00 PM +0200 6/11/03, Marcel Weiher wrote:
On Wednesday, June 11, 2003, at 12:54 Uhr, Jay Vaughan wrote:
Don't offer new programmers bad advice just because it reflects some 'programmer cool'.

Don't get personal. Don't get personal based only on something that is purely your own personal opinion. Don't get personal.

Right!

How this is different from a function-definition that you haven't seen before, or a message-selector you haven't seen before is something you have so far failed to explain.

Right.

READ the code. Don't just stare at it. And for gods sake, please don't use #define to make changes to language semantics!!!!

For god's sake: try to understand that this addition is not a *change* to language semantics.

Exactly. An example of changing language semantics would be overloading the = operator to have some funky side effect. *That* is dangerous, because I can't tell just by looking at "x = y" that = doesn't mean what I thought it meant [1]. By contrast, it's pretty clear when I look at "if (foo is bar)" that the programmer has done something to make "is" behave like an operator. There is no existing "is" operator in C to get confused with.

If one is worried about changing language semantics, let's start by not changing the semantics of "semantics."

--Andy

[1] Perhaps this could be nicknamed the "Inconceivable!" effect?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: C question for you old guys ;-)
      • From: Jay Vaughan <email@hidden>
References: 
 >Re: C question for you old guys ;-) (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Regex examples in Java 1.4.1
  • Next by Date: Dragging Rect
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: C question for you old guys ;-)
  • Index(es):
    • Date
    • Thread