Shorter syntax for integer types covering entire value range #1250
Labels
architectural decision
Discussion of design decision
specification
Related to specification package (e.g., specification parsing)
Context and Problem Statement
Declaring an integer type which covers the entire value range can be quite cumbersome:
Use Cases
There are many cases in message formats of real world protocols where such integers are required.
Considered Options
O1 Optional
Size
aspect+ No new keyword
− Implicit determination of type size could be confusing for user
O2 Box instead value range
+ No new keyword
−
range <>
does also occur in Ada, but in different context, so could be confusing for Ada programmersO3 New keyword
O3.1
+ Concise
− New keyword (with the same name as an existing aspect)
O3.2
+ Concise
+ Can be extended by
signed
keyword for signed integer types− New keyword
O4 Reuse syntax of modular types
− Well-known syntax for Ada programmers, but different semantics as in Ada (cf. #727)
Decision Outcome
O3.2
The text was updated successfully, but these errors were encountered: