[Info-vax] VMS process communication
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Tue Mar 14 16:04:29 EDT 2023
On 2023-03-14, Arne Vajhøj <arne at vajhoej.dk> wrote:
> On 3/14/2023 2:31 PM, Simon Clubley wrote:
>> On 2023-03-14, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>>
>>> It is way more likely to have a need for types like:
>>>
>>> 1..100
>>> 0..99
>>> -10..10
>>> etc.
>>>
>>> But that is not in fashion today (Pascal, Modula-2,
>>> Oberon, Ada etc. are rare today).
>>>
>>
>> Unfortunately. :-(
>>
>> Are there any languages other than the Wirth-inspired ones which do
>> have them as part of the core language ?
>
> Not that I am aware of.
>
>> BTW, given what the Rust people claim about Rust's target markets,
>> I consider that to be a surprising omission from Rust, given that they
>> had all these languages to look at when they were designing Rust.
>
> A large chunk of Rust target market is the low level
> near to the hardware market and there it may actually
> be the requirement that there is N bits to fill out.
>
> But in the much bigger business related market then there is
> rarely a bit requirements - most likely those defining the
> requirements do not know what a bit is.
>
True, but we are not really talking about bit requirements here.
What we are talking about is implementing a model of some real-world
process, where the legal values for a data type in that process are a
subset of the possible values that could fit in it when that data type
is implemented within a program.
Having the above types of ranges directly supported in a language
helps to implement that model more accurately, and allows the language
to enforce that only this subset of values is ever allowed in a program.
That ability has a range of applications both within lower-level and
higher-level languages.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list