Adding decimal as an intrinsic type
It would be useful to have a decimal intrinsic type available. While it is possible to define a custom one (using scalar extends) this seems like a frequent (and high value) enough numeric type to include in the built-in set.
For the purposes of modeling I don't think we need to worry about rounding modes or similar. However, I think it is worth discussing if the design should be a fixed size -- say like the dotnet decimal or an unbounded size that the emitters can limit as desired.
A concrete proposal might be adding:
scalar decimal extends numeric; // unbounded, big decimal
scalar decimal128 extends decimal;
~~scalar decimal64 extends decimal128;~~
~~scalar decimal32 extends decimal64;~~
I tend to agree that these should be built in.
It's great that you're doing this. It will be useful for financial models.
Add decimal and decimal128. No to decimal64 and 32 for now, but chime in if you have feedback on this point!
Excellent!
- add linting rules to prevent usage in azure.core based specs
Closing as completed