Enum literals, good? bad? what do you think?
Steven Schveighoffer
schveiguy at gmail.com
Wed Jul 21 21:16:42 UTC 2021
On 7/21/21 5:02 PM, Walter Bright wrote:
> On 7/21/2021 6:36 AM, Steven Schveighoffer wrote:
>> I enjoy having this type of shortcut in Swift, and wish D had
>> something similar.
>
> Your wish has been heard and duly granted. The internet delivers once
> again!
>
> See Patrick Schluter and Mike Parker's solutions upthread.
No, `mixin something; thenCallFunction(...);` isn't even close to the same.
-Steve
More information about the Digitalmars-d
mailing list