alias vs enum for lambdas?
user1234
user1234 at 12.de
Mon Apr 28 22:50:18 UTC 2025
On Monday, 28 April 2025 at 22:47:35 UTC, monkyyy wrote:
> On Monday, 28 April 2025 at 22:16:47 UTC, user1234 wrote:
>> On Monday, 28 April 2025 at 20:05:34 UTC, monkyyy wrote:
>>>
>>> aliases for types, overload sets
>>>
>>> enum for litterals
>>
>> According to me that's a very bad advice. I'm more on "never
>> enum". Do you have any example where enum is better ?
>
> enum N=1024;
>
> int[N] array1;
> int[N] array2;
this is totally unrelated to the topic. i.e function as
expressions.
More information about the Digitalmars-d-learn
mailing list