Suggestion: Operator `in` for slices
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Dec 20 21:11:28 UTC 2021
On Monday, 20 December 2021 at 14:21:08 UTC, Paul Backus wrote:
> ```d
> import std.algorithm.searching;
>
> if (["if", "while", "for"].canFind(keyword)) {
> // ...
> }
> ```
You can always create a library construct, but then you should
also argue in favour of removing AAs and "in". You either do it,
or you don't. Why the half-measures?
More information about the Digitalmars-d
mailing list