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


Groups > comp.lang.java.help > #706

Re: [OT] Re: Why would one use += 1 at the place of ++?

From rossum <rossum48@coldmail.com>
Newsgroups comp.lang.java.help
Subject Re: [OT] Re: Why would one use += 1 at the place of ++?
Date 2011-05-20 11:00 +0100
Message-ID <grect695l43oa0na0gbnvprlapg33s1p7j@4ax.com> (permalink)
References <8762p7upgn.fsf@merciadriluca-station.MERCIADRILUCA> <4t6Bp.534$pi2.511@newsfe11.iad> <ir30ui$jok$1@dont-email.me> <veSdnZd_-OsAt0jQnZ2dnUVZ_oudnZ2d@earthlink.com> <ir4lca$6dk$1@dont-email.me>

Show all headers | View raw


On Thu, 19 May 2011 22:57:45 -0400, Eric Sosman
<esosman@ieee-dot-org.invalid> wrote:

>Java inherits a lot from C.  I've always supposed (no evidence)
>that it was a deliberate choice, intended to make it easier for C and
>C++ programmers to learn Java.  And that (I suppose) is why Java has
>C's infelicitous precedence for | and & w.r.t. almost everything else.
It was deliberate:

"Even though C++ was rejected as an implementation language, keeping
the Java programming language looking like C++ as far as possible
results in it being a familiar language, while removing the
unnecessary complexities of C++. Having the Java programming language
retain many of the object-oriented features and the "look and feel" of
C++ means that programmers can migrate easily to the Java platform and
be productive quickly."

Source: (http://java.sun.com/docs/white/langenv/Intro.doc2.html)

rossum

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


Thread

Why would one use += 1 at the place of ++? Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-05-19 09:19 +0200
  Re: Why would one use += 1 at the place of ++? Bent C Dalager <bcd@pvv.ntnu.no> - 2011-05-19 10:22 +0000
  Re: Why would one use += 1 at the place of ++? David Lamb <dalamb@cs.queensu.ca> - 2011-05-19 06:40 -0400
    Re: Why would one use += 1 at the place of ++? Jeff Higgins <jeff@invalid.invalid> - 2011-05-19 07:58 -0400
    [OT] Re: Why would one use += 1 at the place of ++? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-05-19 08:03 -0400
      Re: [OT] Re: Why would one use += 1 at the place of ++? Patricia Shanahan <pats@acm.org> - 2011-05-19 07:35 -0700
        Re: [OT] Re: Why would one use += 1 at the place of ++? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-05-19 22:57 -0400
          Re: [OT] Re: Why would one use += 1 at the place of ++? rossum <rossum48@coldmail.com> - 2011-05-20 11:00 +0100
          Re: [OT] Re: Why would one use += 1 at the place of ++? Patricia Shanahan <pats@acm.org> - 2011-05-20 12:55 -0700
      Re: [OT] Re: Why would one use += 1 at the place of ++? David Lamb <dalamb@cs.queensu.ca> - 2011-05-19 17:58 -0400
        Re: [OT] Re: Why would one use += 1 at the place of ++? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-05-19 23:13 -0400
    Re: Why would one use += 1 at the place of ++? Lew <noone@lewscanon.com> - 2011-05-19 08:43 -0400
  Re: Why would one use += 1 at the place of ++? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-05-19 07:51 -0400
  Re: Why would one use += 1 at the place of ++? Jeff Higgins <jeff@invalid.invalid> - 2011-05-19 08:03 -0400
    Re: Why would one use += 1 at the place of ++? Lew <noone@lewscanon.com> - 2011-05-19 08:08 -0400
  Re: Why would one use += 1 at the place of ++? Roedy Green <see_website@mindprod.com.invalid> - 2011-05-19 10:23 -0700
    Re: Why would one use += 1 at the place of ++? Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-05-19 21:15 +0200
      Re: Why would one use += 1 at the place of ++? Lew <noone@lewscanon.com> - 2011-05-19 15:29 -0400

csiph-web