Discussion Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1
Nick Treleaven
nick at geany.org
Mon Jan 11 14:42:57 UTC 2021
On Monday, 11 January 2021 at 13:05:18 UTC, jmh530 wrote:
> On Monday, 11 January 2021 at 12:32:42 UTC, Nick Treleaven
> wrote:
>> [snip]
>>
>> I think if the DIP proposed a literal syntax instead of a new
>> variable declaration syntax, it would be much less of a burden
>> to the compiler. I think we don't have any partial (variable)
>> type inference syntax ATM.
>> [snip]
>
> Could you provide an example? (apologies if you already have...)
Just a suffix like `[1,2]$` or `[1]s`. Then just use `auto var =`
with it as normal.
More information about the Digitalmars-d-announce
mailing list