Deutsch   English   Français   Italiano  
<vaf393$db$2@reader1.panix.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: New VSI post on Youtube
Date: Sun, 25 Aug 2024 11:07:15 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <vaf393$db$2@reader1.panix.com>
References: <v9ehs5$3mqbj$1@dont-email.me> <va226u$3ce14$1@dont-email.me> <va22l3$3cdrf$4@dont-email.me> <va26po$3d9f0$1@dont-email.me>
Injection-Date: Sun, 25 Aug 2024 11:07:15 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="427"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
Bytes: 2458
Lines: 38

In article <va26po$3d9f0$1@dont-email.me>,
Arne Vajhøj  <arne@vajhoej.dk> wrote:
>On 8/20/2024 8:36 AM, Simon Clubley wrote:
>> On 2024-08-20, chrisq <devzero@nospam.com> wrote:
>>> I guess another complication is that some functions return
>>> -1, which implies a signed variable. To fix all that would require a
>>> complete rewrite of the library and probably most of the os and
>>> applications as well, so it will never happen. Just have to write
>>> unsigned equivalents, or slip functions with casts, but it's a lot
>>> of additional work.
>> 
>> One thing I wish was available in all languages is the ability to return
>> multiple values from a function call so you can return both a status and
>> the value(s) in one assignment. Ie: "a, b, c = demo_function(param1, param2);".
>> 
>> In languages with dynamic associative arrays (such as PHP), I simulate
>> this by returning an associative array from a function call with both
>> status and value fields. Makes coding _so_ much cleaner and robust.
>
>Few languages support multiple return values.

Nonsense.  _Many_ languages do; just not ones that you are
familiar with.

>And a few other languages support tuples with named fields
>or anonymous classes with named properties, which is almost as good.

See above.

>And almost all newer high level languages support 
>map/dictionary/associative array.

What does this even mean?  Many of these things have been
supported by high(er)-level languages for decades.  Perhaps
you mean as a first-class object in the language, and not
simply via a library?

	- Dan C.