C++ still doesn't have good loop syntax

Kapendev alexandroskapretsos at gmail.com
Wed Jul 15 19:53:40 UTC 2026


On Wednesday, 15 July 2026 at 19:52:14 UTC, Kapendev wrote:
>>
>> Yes sure, in the great tradition of D we could also imagine a 
>> DotExp property, i.e
>>
>> ```d
>> auto static_array = [1, 2, 3].staticarrayof;
>> ```
>>
>> 🙃
>
> This one is OK too, just paying for a template there.
> The good thing about it is that it's not a language change.
> Now, the choice between what `[item1, item2]` should be by 
> default is not important in my opinion, but I get it being 
> weird or annoying for some.

Ah, it's not the thing from the standard library. Anyway, same 
thing.


More information about the Digitalmars-d mailing list