• 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: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)


  • Subject: Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 26 Feb 2004 01:30:13 +0100

On Wednesday, Feb 25, 2004, at 20:44 Europe/Prague, Erik Hanson wrote:

This would be great for parentheses too. I often start an if condition like this: "if ( a == b )" and then I remember I need to add another condition: "if ( a == b ) && ( b == c ) )". I'd love to be able to hit command-( to have my editor insert the "(" right after the "if".

In this case, just add the other part, without cluttering the expression with unneeded parentheses: if (a==b && c==d) is equal with the added benefit it is *WAYS* more readable by a human... Thanks K&R, we got decent operator priorities in ObjC ;)))

Nevertheless, the idea of smart-pairing ['s looks great: seems to me like a very good candidate to be added into TextExtras!
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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:
    • K&R Operator precedence (was: Re: ObjC method syntax)
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs) (From: Erik Hanson <email@hidden>)

  • Prev by Date: Re: NSArrayController and bindings
  • Next by Date: Re: Line numbers in IDE
  • Previous by thread: Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
  • Next by thread: K&R Operator precedence (was: Re: ObjC method syntax)
  • Index(es):
    • Date
    • Thread