Refactoring Code
kdevel
kdevel at vogtner.de
Mon Mar 4 22:52:18 UTC 2024
On Sunday, 3 March 2024 at 09:59:28 UTC, ryuukk_ wrote:
> ```D
> package CppOperator isCppOperator(const scope Identifier id)
> {
> return switch (id) {
> :_cast => :Cast;
> :assign => :Assign;
> :eq => :Eq;
> :index => :Index;
> :call => :Call;
> :opUnary => :Unary;
> :opBinary => :Binary;
> :opOpAssign => :OpAssign;
> else => :Unknown;
> };
> }
> ```
>
> Symbols won't clash, and it has less noise
The code is tagged as 'D' but what is the real name of the
language?
More information about the Digitalmars-d
mailing list