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


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

Re: looping through a list, starting at 1

Newsgroups comp.lang.java.programmer
From Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Subject Re: looping through a list, starting at 1
References (1 earlier) <8djj37pg6o35jb1b8lskefb4jmb2iadmbe@4ax.com> <nospam-9625F7.23364303082011@news.aioe.org> <4e3a5a4c$0$2527$da0feed9@news.zen.co.uk> <9a04aaFp76U1@mid.individual.net> <j1eoba$uj6$1@dont-email.me>
Message-ID <slrnj3nh38.6gl.avl@gamma.logic.tuwien.ac.at> (permalink)
Date 2011-08-05 10:22 +0000

Show all headers | View raw


markspace <-@> wrote:
> On 8/4/2011 10:47 AM, Chris Riesbeck wrote:
>>  In C++, an overloaded postfix ++ ...
> See?  This is why I'm against any kind of operator overloading in Java. 

*All* generalizations are bad.

This little wart of idiomatic postIncr extended from primitives 
(where it didn't really matter) to object types (where it does
matter) shouldn't be generalized to all operators.

(and the other "wart" about overloading << and >> for streams
 in C++ is just subjective judgement.  I don't find it all that
 bad, myself. It fits well to the look of the symbol indicating
 direction of data-flow, unlike e.g. mathematical ops, which
 are "just" convention. )

>   Too much stupid out there.

Maybe Java just isn't for the masses -- they all have their 
own mind on coding, not adhering to my own.    (*irony*)

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


Thread

Re: looping through a list, starting at 1 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-03 15:40 -0700
  Re: looping through a list, starting at 1 Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-08-03 20:53 -0300
  Re: looping through a list, starting at 1 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-03 21:10 -0400
    Re: looping through a list, starting at 1 Gene Wirchenko <genew@ocis.net> - 2011-08-03 21:22 -0700
  Re: looping through a list, starting at 1 "John B. Matthews" <nospam@nospam.invalid> - 2011-08-03 23:36 -0400
    Re: looping through a list, starting at 1 RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-08-04 09:37 +0100
      Re: looping through a list, starting at 1 Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2011-08-04 12:47 -0500
        Re: looping through a list, starting at 1 markspace <-@.> - 2011-08-04 11:27 -0700
          Re: looping through a list, starting at 1 Patricia Shanahan <pats@acm.org> - 2011-08-04 13:58 -0700
            Re: looping through a list, starting at 1 markspace <-@.> - 2011-08-04 14:36 -0700
              Re: looping through a list, starting at 1 Patricia Shanahan <pats@acm.org> - 2011-08-04 14:46 -0700
                Re: looping through a list, starting at 1 RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-08-05 10:09 +0100
                Re: looping through a list, starting at 1 Gene Wirchenko <genew@ocis.net> - 2011-08-05 14:46 -0700
            Re: looping through a list, starting at 1 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-04 20:51 -0400
              Re: looping through a list, starting at 1 Tim Slattery <Slattery_T@bls.gov> - 2011-08-05 08:38 -0400
          Re: looping through a list, starting at 1 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-05 10:22 +0000
  Re: looping through a list, starting at 1 Lew <lewbloch@gmail.com> - 2011-08-10 09:05 -0700

csiph-web