[Smtk-developers] Resource and ResourceComponent Types
Ben Boeckel
ben.boeckel at kitware.com
Thu Aug 17 08:51:11 EDT 2017
On Wed, Aug 16, 2017 at 09:18:25 -0400, David Thompson wrote:
> flexible. I worry that if we start with an enum and then add cases all
> the pre-existing switch statements would add fragility; people seem to
> deal with strings a little more defensively than enums.
Enums can have warnings associated with them when all cases aren't
handled so that you at least know that you missed a variant. Strings
can't have that. I don't see how enums have fragility where strings
don't.
--Ben
More information about the Smtk-developers
mailing list