Using 'with'

Vitaliy Fadeev vital.fadeev at gmail.com
Mon Jan 12 11:40:07 UTC 2026


On Monday, 12 January 2026 at 11:28:01 UTC, user1234 wrote:
> On Monday, 12 January 2026 at 10:55:34 UTC, Vitaliy Fadeev 
> wrote:
>> Hi! Did we know you could do this?
>> To make the `enum` inside the `case` easier to read:
>>
>> [...]
>>
>> Check the **with (Event.Type)**.
>
> Yes this is a well known idiom, see 
> https://p0nce.github.io/d-idioms/#Qualified-switch-using-with.

Wow! This looks great! Thanks!


More information about the Digitalmars-d-learn mailing list