Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22052
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Knute Johnson <nospam@knutejohnson.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: refactoring problem |
| Date | Sun, 03 Feb 2013 10:20:44 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 28 |
| Message-ID | <kem9p7$i12$1@dont-email.me> (permalink) |
| References | <7fssg8dakvofmv6pk3sfvp5jmaku55vgmm@4ax.com> <kem88s$72o$1@dont-email.me> <510ea8de$0$284$14726298@news.sunsite.dk> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 3 Feb 2013 18:20:23 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="18466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CQniRNIz5zlFJk+y2eMd+" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| In-Reply-To | <510ea8de$0$284$14726298@news.sunsite.dk> |
| Cancel-Lock | sha1:VzG41hQaOmLvVGLTqMTaFIDHUA4= |
| Xref | csiph.com comp.lang.java.programmer:22052 |
Show key headers only | View raw
On 2/3/2013 10:13 AM, Arne Vajhøj wrote: > On 2/3/2013 12:54 PM, Joshua Cranmer wrote: >> On 2/3/2013 8:30 AM, Roedy Green wrote: >>> I think, why can methods have multiple inputs, but only one output? I >>> have been thinking that for about 50 years, and it ,seems unlikely to >>> change soon. >> >> The short answer is that grammar makes N-ary arguments easy to express >> but N-ary returns difficult. Function calls evaluate to a value, so to >> implement N-ary returns, you have to effectively make tuples first-class >> values and treat multiple return values as tuple unpacking. In >> explicitly-typed languages like Java, this would make doing things like >> initializing multiple values of different types from a multiple-returned >> value syntactically annoying. > > (int a; double b; String c) = multiReturnValueMethod(); > > sure does look funky! > > Arne > > Perl does it. -- Knute Johnson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
refactoring problem Roedy Green <see_website@mindprod.com.invalid> - 2013-02-03 06:30 -0800
Re: refactoring problem Martin Gregorie <martin@address-in-sig.invalid> - 2013-02-03 16:23 +0000
Re: refactoring problem Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-03 12:27 -0400
Re: refactoring problem Roedy Green <see_website@mindprod.com.invalid> - 2013-02-03 12:35 -0800
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-03 15:37 -0500
Re: refactoring problem Leif Roar Moldskred <leifm@dimnakorr.com> - 2013-02-03 15:21 -0600
Re: refactoring problem Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-03 17:38 -0400
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-03 16:46 -0500
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-03 14:36 -0800
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-03 11:34 -0500
Re: refactoring problem Joshua Cranmer <Pidgeot18@verizon.invalid> - 2013-02-03 11:54 -0600
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-03 13:13 -0500
Re: refactoring problem Knute Johnson <nospam@knutejohnson.com> - 2013-02-03 10:20 -0800
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-03 13:32 -0500
Re: refactoring problem Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2013-02-03 10:50 -0800
Re: refactoring problem Robert Klemme <shortcutter@googlemail.com> - 2013-02-03 21:38 +0100
Re: refactoring problem "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-02-04 08:11 +0000
Re: refactoring problem Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2013-02-04 03:56 -0800
Re: refactoring problem Silvio <silvio@internet.com> - 2013-02-04 13:21 +0100
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-04 12:35 -0800
Re: refactoring problem Silvio <silvio@internet.com> - 2013-02-04 22:15 +0100
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-04 13:49 -0800
Re: refactoring problem Silvio <silvio@internet.com> - 2013-02-04 23:51 +0100
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-04 13:53 -0800
Re: refactoring problem Silvio <silvio@internet.com> - 2013-02-04 23:48 +0100
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-04 17:08 -0800
Re: refactoring problem Silvio <silvio@internet.com> - 2013-02-05 10:07 +0100
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-05 13:13 -0800
Re: refactoring problem Jim Gibson <jimsgibson@gmail.com> - 2013-02-05 13:20 -0800
Re: refactoring problem Lew <lewbloch@gmail.com> - 2013-02-05 13:31 -0800
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-05 21:42 -0500
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-04 18:33 -0500
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-04 18:32 -0500
Re: refactoring problem Martin Gregorie <martin@address-in-sig.invalid> - 2013-02-05 01:50 +0000
Re: refactoring problem Joshua Cranmer <Pidgeot18@verizon.invalid> - 2013-02-05 10:04 -0600
Re: refactoring problem Gene Wirchenko <genew@telus.net> - 2013-02-05 10:38 -0800
Re: refactoring problem Joshua Cranmer <Pidgeot18@verizon.invalid> - 2013-02-05 13:53 -0600
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-05 21:43 -0500
Re: refactoring problem markspace <markspace@nospam.nospam> - 2013-02-05 19:15 -0800
Re: refactoring problem Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 23:58 -0500
Re: refactoring problem Joerg Meier <joergmmeier@arcor.de> - 2013-02-05 11:09 +0100
csiph-web