set_player_color(player, .RED);
That should be the way to use them, it's concise and typesafe set_color(Color::RED);
Why repeat yourself?It's one of the things I love about Swift and Zig
int main() {
using enum ComputeStatus;
ComputeStatus s = NotEnoughMemory;
}
now you have polluted the scope.. C++ have lost the plot.. they understood the issue, but they came up with a solution that's worse...