[Info-vax] VMS process communication

Arne Vajhøj arne at vajhoej.dk
Mon Mar 13 10:19:49 EDT 2023


On 3/13/2023 10:01 AM, Simon Clubley wrote:
> On 2023-03-13, Arne Vajhøj <arne at vajhoej.dk> wrote:
>> On 3/13/2023 9:32 AM, Simon Clubley wrote:
>>>
>>> Even better is to use uintXX_t unless you really want a signed integer. :-)
>>>
>>> A big mistake languages made (IMHO) was to make their integers signed
>>> by default, instead of you needing to ask for a signed integer if you
>>> really needed one.
>>
>> That is not really C specific.
> 
> Notice I didn't say C, but "languages". :-)
> 
> I consider it a general design flaw in languages, probably based on the
> need to mirror underlying early architecture and then it just became
> established as the default.

I consider it rather natural to have integers signed by default.

Except byte that I like unsigned.

I really like C# where short, int and long are signed while
byte is unsigned - and one can pick ushort, uint, ulong and
sbyte when one want the other way.

Arne






More information about the Info-vax mailing list