Inferring static array size

NotYouAgain NotYouAgain at gmail.com
Tue Apr 30 05:51:24 UTC 2024


On Tuesday, 30 April 2024 at 02:20:39 UTC, electricface wrote:
> On Sunday, 28 April 2024 at 16:08:11 UTC, Richard (Rikki) 
> Andrew Cattermole wrote:
>> On 28/04/2024 10:17 PM, ryuukk_ wrote:
>>> |_| should be enough
>>
>> ``_`` is a valid identifier that may point to a length.
>>
>> So that isn't usable.
>
> I think it's better to represent the automatically calculated 
> length using `..` .
>
> ```
> int[..] a = [1,2,3,4,5]
> ```

Yes, I like this more.

Someone please submit a DIP.


More information about the dip.ideas mailing list