Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25604 > unrolled thread
| Started by | "Mike Schilling" <mscottschilling@hotmail.com> |
|---|---|
| First post | 2011-02-07 21:00 -0800 |
| Last post | 2011-02-08 07:48 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Why “new”? "Mike Schilling" <mscottschilling@hotmail.com> - 2011-02-07 21:00 -0800
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-08 07:48 -0500
| From | "Mike Schilling" <mscottschilling@hotmail.com> |
|---|---|
| Date | 2011-02-07 21:00 -0800 |
| Subject | Re: Why “new”? |
| Message-ID | <iiqikh$7cj$1@news.eternal-september.org> |
"Lew" <noone@lewscanon.com> wrote in message news:iiq27v$flt$3@news.albasani.net... > Roedy Green wrote: >>> Java has almost no syntactic sugar other that for:each which came >>> quite late in the game. The creators of Java were system programmers. > > Yet what it does have is so sweet! Maybe it doesn't need more sugar. A fair amount of what was added in Java 5 (generics aside) was syntactic sugar: * Variable-parameter functions * Autoboxing * The enhanced for loop The last of these is one of my favorite things in the whole language.
[toc] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2011-02-08 07:48 -0500 |
| Message-ID | <iire1f$987$1@news.albasani.net> |
| In reply to | #25604 |
Roedy Green wrote: >>>> Java has almost no syntactic sugar other that for:each which came >>>> quite late in the game. The creators of Java were system programmers. Lew wrote: >> Yet what it does have is so sweet! Maybe it doesn't need more sugar. Mike Schilling wrote: > A fair amount of what was added in Java 5 (generics aside) was syntactic sugar: > > * Variable-parameter functions > * Autoboxing > * The enhanced for loop > > The last of these is one of my favorite things in the whole language. for ( int ix = 0; ix < limit; ++ix ) is syntactic sugar for a 'while' loop. '+=' is syntactic sugar for "add and assign". '?:' is syntactic sugar for a simple 'if/else'. Leaving implicit the default constructor or the 'super()' call at the top of a constructor are syntactic sugar. Auto-initialization of member fields to their zero-like value is syntactic sugar. 'synchronized' is syntactic sugar for taking out (and releasing!) a lock on a monitor. 'import' is syntactic sugar for FQNs. Yeah, Roedy, Java has almost no syntactic sugar! -- Lew Ceci n'est pas une fenêtre. .___________. |###] | [###| |##/ | *\##| |#/ * | \#| |#----|----#| || | * || |o * | o| |_____|_____| |===========|
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web