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


Groups > comp.lang.java.programmer > #35607

Re: Good pattern for realizing the out-param capability in Java?

From j4n bur53 <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Good pattern for realizing the out-param capability in Java?
Date 2016-09-14 23:45 +0200
Organization albasani.net
Message-ID <nrcgda$tup$1@news.albasani.net> (permalink)
References <ec81f584-4e19-4f0b-ba29-924ef4e1a570@googlegroups.com> <8959892d-cd75-4680-b836-260a971f3366@googlegroups.com> <nrcf7k$ed3$1@dont-email.me>

Show all headers | View raw


Eric Sosman schrieb:
>      I disagree with the premise: It is fairly common for a computation
> to generate more than one result.

Yes, this is kind of a flaw of the Java language,
and it was sometimes under discussion to introduce
many result functions and also many value assignments.

I think the Go programming language has this. (But
the have ugly exception handling on the other hand)

But this language extension hasn't happend yet, and
I think its a pitty, since I guess it could be
mapped to the existing byte code, maybe not to the
existing class format.

The promise that object creation is cheap, and stack
allocated by compiler optimizations doesn't really
matrialize. Try for example run code that runs fine
on a windows box, on a android device.

This is at least my recent impression.

Bye

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Good pattern for realizing the out-param capability in Java? sandeep6699@yahoo.com - 2016-09-14 09:17 -0700
  Re: Good pattern for realizing the out-param capability in Java? Robert Klemme <shortcutter@googlemail.com> - 2016-09-14 18:43 +0200
  Re: Good pattern for realizing the out-param capability in Java? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-14 12:55 -0400
  Re: Good pattern for realizing the out-param capability in Java? j4n bur53 <janburse@fastmail.fm> - 2016-09-14 21:00 +0200
  Re: Good pattern for realizing the out-param capability in Java? Eric Douglas <e.d.programmer@gmail.com> - 2016-09-14 12:54 -0700
    Re: Good pattern for realizing the out-param capability in Java? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-14 17:25 -0400
      Re: Good pattern for realizing the out-param capability in Java? j4n bur53 <janburse@fastmail.fm> - 2016-09-14 23:45 +0200
  Re: Good pattern for realizing the out-param capability in Java? Lew <lewbloch@gmail.com> - 2016-09-14 16:29 -0700

csiph-web