News for hackers. Stuff that matters.
Re:Ill-Advised C++ Rant, Part 2 (2016) by colanderman on Thursday October 26, 2017 @01:16AM (#15556527)
enum→string I agree 100% is useful for debugging. string→enum, and enum→string for production purposes I find questionable, since they couple your implementation internals to an externally-visible protocol, of which a change in one should not necessitate a change in the other. Of course relying on an implicit mapping speeds initial development… but I'm the one who has to maintain those things ;)

There are no comments on this comment yet.