Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26032
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Mike Schilling" <mscottschilling@hotmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Why “new”? |
| Date | Fri, 4 Feb 2011 17:33:49 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 3 |
| Message-ID | <iii9dq$3pr$1@news.eternal-september.org> (permalink) |
| References | <iii71v$3ud$1@lust.ihug.co.nz> <4d4ca255$0$23765$14726298@news.sunsite.dk> <iii8s4$4tt$1@lust.ihug.co.nz> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sat, 5 Feb 2011 01:33:46 +0000 (UTC) |
| Injection-Info | mx01.eternal-september.org; posting-host="r5rcaYaDpxRdcCTUEzI8Mw"; logging-data="3899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9SvSZUfuclm5EGHlz3tGviOOLb2SIT6E=" |
| X-MimeOLE | Produced By Microsoft MimeOLE V14.0.8117.416 |
| In-Reply-To | <iii8s4$4tt$1@lust.ihug.co.nz> |
| X-Newsreader | Microsoft Windows Live Mail 14.0.8117.416 |
| Importance | Normal |
| Cancel-Lock | sha1:6qu/68LhLi3l71MKVFnKvAAhy7Q= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.lang.java.programmer:26032 |
Show key headers only | View raw
"Lawrence D'Oliveiro" <ldo@geek-central.gen.new_zealand> wrote in message news:iii8s4$4tt$1@lust.ihug.co.nz... > In message <4d4ca255$0$23765$14726298@news.sunsite.dk>, Arne Vajhøj wrote: > >> Java is very inspired from C++ syntax wise. >> >> When the rest of the language is C++ like it would >> have confused people not to use C++ syntax for >> object creation as well. >> >> Consistent style. > > In that case, they should have kept the word “virtual” as well. > >> And BTW the use of new is not just a C++ thing - other >> language use a new keyword (with different syntax) for >> object creation: Pascal, VB, Perl. >> >>> I’m surprised Java never added a shorter form, say >>> >>> classname varname(args); >>> >>> which is of course straight out of C++. >> >> But with a different semantic than Java, so it >> would really be confusing. > > You already have that confusion, when every method declaration in Java is > effectively virtual, unlike C++. That's not true, you know.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 13:53 +1300
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:07 -0500
Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 16:51 +1300
Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-04 23:06 -0500
Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 19:45 +1300
Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:32 -0500
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-04 23:40 -0500
Re: Why “new”? Arne Vajhøj <arne@vajhoej.dk> - 2011-02-07 19:15 -0500
Re: Why ?new?? Owen Jacobson <angrybaldguy@gmail.com> - 2011-02-05 10:46 -0500
Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 19:29 +1300
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:22 -0500
Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:41 -0500
Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-04 23:43 -0500
Re: Why “new”? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-02-05 09:31 -0400
Re: Why “new”? Daniele Futtorovic <da.futt.news@laposte.net.invalid> - 2011-02-05 18:43 +0100
Re: Why “new”? Arne Vajhøj <arne@vajhoej.dk> - 2011-02-04 20:05 -0500
Re: Why “new”? "Mike Schilling" <mscottschilling@hotmail.com> - 2011-02-04 17:33 -0800
Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 14:53 +1300
Re: Why “new”? Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2011-02-04 21:31 -0800
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 01:25 -0500
Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 14:24 +1300
Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-04 23:47 -0500
Re: Why “new”? Daniele Futtorovic <da.futt.news@laposte.net.invalid> - 2011-02-05 02:09 +0100
csiph-web