• 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: AW: AW: a smaall question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: AW: a smaall question


  • Subject: Re: AW: AW: a smaall question
  • From: MacFirst <email@hidden>
  • Date: Thu, 18 Aug 2005 07:21:33 -0700

on 8/18/05 5:44 AM, Helge Staedtler <email@hidden> went on and on saying, in
part:

>>>> I have a variable declared in my Session.java
>>>>
>>>> when I need to access it i need alway to prepend "((Session)session
>>>> ())".... ok
>>>>
>>>> But the is another method to do this.... some times some funcions
>>>> become log and confusive... only ((Session)session()) are six
>>>> brackets.... :=)

    [15 lines of support code, snipped]
> This way you end up with - attention now!!! - *NO* brackets at all. ;-)

This seems like a lot of solution for what really isn't a problem.  Another
tactic would be to recognize that parentheses are beautiful and clarify,
rather than obfuscate, code, and more people should use them more often.

Not that there's anything WRONG with your suggestion -- only that it's not
REALLY all that confusing to refer to ((Session)session()).myMethod(),
either.

Once one starts down the "parens are confusing and add clutter" path, one
begins to encounter such monsters as

    if (a && b = c() || d)

Which, while perfectly readable, would be MUCH nicer with a few more
parentheses!  (Better, broken onto separate lines with intermediate
variables, but I won't start THAT flame war... <G>)


--
Women and cats will do as they please and men and dogs should relax and get
used to the idea." --- Robert A. Heinlein


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AW: AW: a smaall question (From: Helge Staedtler <email@hidden>)

  • Prev by Date: Re: first stab at generating an XML output
  • Next by Date: Re: first stab at generating an XML output
  • Previous by thread: AW: AW: a smaall question
  • Next by thread: Re: a smaall question
  • Index(es):
    • Date
    • Thread