Discussion Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1

Nick Treleaven nick at geany.org
Wed Jan 13 15:36:09 UTC 2021


On Monday, 11 January 2021 at 20:25:14 UTC, Luhrel wrote:
>> 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.
>
> I don't think that will be complicated to implement, the 
> compiler already says "mismatched array lengths, 2 and 1".

Ok, you're right. I still think a literal syntax is the more 
natural way to do this though.



More information about the Digitalmars-d-announce mailing list