Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27395

Re: building "path expressions"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: building "path expressions"
Date Thu, 23 Jan 2014 15:33:38 -0800
Organization A noiseless patient Spider
Lines 33
Message-ID <lbs8sl$blq$1@dont-email.me> (permalink)
References <path-expressions-20140123173039@ram.dialup.fu-berlin.de> <lbru26$8dv$1@dont-email.me> <nesting-20140123220949@ram.dialup.fu-berlin.de> <lbs32v$607$1@dont-email.me> <path-expressions-20140123230350@ram.dialup.fu-berlin.de> <lbs587$im7$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Thu, 23 Jan 2014 23:33:41 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="9358cda03e1e0dfd3c4b757daa608707"; logging-data="11962"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xzMsYKpj4RenKvtGqQ4G16cneLgnmXzc="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <lbs587$im7$1@dont-email.me>
Cancel-Lock sha1:ue4YfpFLbpjKzKdc693e2OglnnM=
Xref csiph.com comp.lang.java.programmer:27395

Show key headers only | View raw


On 1/23/2014 2:29 PM, Jeff Higgins wrote:
>
> Why would one want type information visible in your "path expression".
>

Removing the operator overloading would convey type information.

- binds package to class.
^ binds class to subclass
: binds class to field

package a.b.c;
class G { int h = 8; }
class F { G g = new G(); }
class d { static class e { static F f = new F(); }}

becomes

   a.b.c-d:e^f:g:h

But no one thinks that way, or wants to.  The type information is there, 
but the example really isn't better for it.  Better to use names that 
convey information than to make funny symbols that look like your cat 
walked on the keyboard.

R.layout.main is an unfortunate example of not using names to properly 
convey information.  It's a quirk of working with actual human beings 
that we all have to put up with this sort of thing on occasion.




Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 15:27 -0500
  Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 16:11 -0500
  Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 16:52 -0500
    Re: building "path expressions" Jeff Higgins <jeff@invalid.invalid> - 2014-01-23 17:29 -0500
      Re: building "path expressions" markspace <markspace@nospam.nospam> - 2014-01-23 15:33 -0800

csiph-web