Deutsch   English   Français   Italiano  
<va26po$3d9f0$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: New VSI post on Youtube
Date: Tue, 20 Aug 2024 09:47:36 -0400
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <va26po$3d9f0$1@dont-email.me>
References: <v9ehs5$3mqbj$1@dont-email.me> <v9idff$f9k4$1@dont-email.me>
 <v9iqln$hrs3$1@dont-email.me> <v9iro6$fql6$1@dont-email.me>
 <66bcf876$0$717$14726298@news.sunsite.dk>
 <66bcfbe3$0$717$14726298@news.sunsite.dk> <v9kske$uqhh$2@dont-email.me>
 <va04hl$2viks$2@dont-email.me> <66c397f6$0$716$14726298@news.sunsite.dk>
 <va226u$3ce14$1@dont-email.me> <va22l3$3cdrf$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Aug 2024 15:47:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ea6d136f1584c6f8706b0ca882e11879";
	logging-data="3581408"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18X4cof8nLRPV9XYjcTI9tP+0UXk0msmSk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8qrc+hmxCFkfU4z6HSzfqOFshM0=
Content-Language: en-US
In-Reply-To: <va22l3$3cdrf$4@dont-email.me>
Bytes: 2546

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.

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

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

Arne