Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26011
| 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 | Daniele Futtorovic <da.futt.news@laposte.net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Why “new”? |
| Date | Sat, 05 Feb 2011 18:43:30 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 45 |
| Message-ID | <iik281$30a$1@news.eternal-september.org> (permalink) |
| References | <iii71v$3ud$1@lust.ihug.co.nz> <iii7vl$t6u$1@news.eternal-september.org> <iiikos$s44$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | quoted-printable |
| Injection-Date | Sat, 5 Feb 2011 17:43:29 +0000 (UTC) |
| Injection-Info | mx03.eternal-september.org; posting-host="i3i6si+Xu7TaTAwF2XEkqA"; logging-data="3082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180I2zcL5JmQsTb2JPl5u82" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
| In-Reply-To | <iiikos$s44$1@news.albasani.net> |
| Cancel-Lock | sha1:NcvULmqS+nuQ0A1a8GrNIJIjCX8= |
| Xref | csiph.com comp.lang.java.programmer:26011 |
Show key headers only | View raw
On 05/02/2011 05:47, Lew allegedly wrote:
> Lawrence D'Oliveiro allegedly wrote:
>>> Java copied C++ in using the word “new” to indicate class
>>> instantiation on
>>> the heap. (Of course, Java is different in not having any other kind of
>>> class instantiation.)
>>>
>>> But what purpose does this word serve? Java defines no meaning for
>>> “classname(args)” different from “new classname(args)”. How many
>>> hundreds of
>>> times a day do Java programms write something like
>>>
>>> classname varname = new classname(args);
>>>
>>> compared to, dare I say it, Python:
>>>
>>> varname = classname(args)
>>>
>>> I’m surprised Java never added a shorter form, say
>>>
>>> classname varname(args);
>>>
>>> which is of course straight out of C++.
>
> Daniele Futtorovic wrote:
>> Are you trolling?
>
> Unanswerable question about language design motivation: check.
> Comparison to other languages making them seem better: check.
> Denigration of language feature ("I'm surprised that..."): check.
> Rejection of factual statements that contradict poster: check.
> Obfuscated reasoning with shifting context: check.
> /Ad hominem/ attacks: nope.
> Defensive stance: nope.
> Arrogant or aggressive tone: nope.
I was waiting for a "no" from the OP before even trying to address their
question. Funny thing it didn't come.
--
DF.
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?? 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”? 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