Unrelated to this PR, but could we do something like:
var func = builtin.Kind switch {
BuiltinKind.Int8 => ...
BuiltinKind.UInt8 => ...
};
return CreateBasicEnum(raw, module, builtin, func);
Instead of repeating the call to CreateBasicEnum in ever case? Because the only thing that actually changes between each case is the lambda we pass, everything else is the same right?
Originally posted by @InsertCreativityHere in #4568 (comment)
Unrelated to this PR, but could we do something like:
Instead of repeating the call to
CreateBasicEnumin ever case? Because the only thing that actually changes between each case is the lambda we pass, everything else is the same right?Originally posted by @InsertCreativityHere in #4568 (comment)