Baudin999 / ZDragon_Old_002

ZDragon is moving to .NET!
MIT License
1 stars 3 forks source link

Syntax change to extend the `Decimal` type with automatic digits #31

Open Baudin999 opened 4 years ago

Baudin999 commented 4 years ago

Should we extend the language to automatically set the decimals of a decimal like so:

type Foo =
    Something: Decimal(2);

The new thing is the (2), currently it is possible to do this by specifying a decimals restriction. The consideration is this:

Current version:

type Foo =
    Something: Decimal
        & decimals 2
    ;