C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Dispatching enum class

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Fri, 1 Apr 2022 12:53:24 -0400
Is this a circumstance that comes up often enough to *require* a
language feature like this? I mean yes, it simplifies these specific
cases, but are these cases prevalent enough to be worthy of being
simplified?

I would much rather see the code spelled out, so that it is pretty
obvious what is going on when you "call" such a value. Especially if
it's going to be self-mutating.

Received on 2022-04-01 16:53:39