@maskit Yes, but one of the key things this does the `switch` does not is 
provide conversion the other way. This is really quite useful for my work on 
configuration parsing and YAML, especially when the enumeration set is dynamic. 
It's just easier to update the list, and I have found in the past the secondary 
names are a nice touch in that area. As noted, this is a reconstruction of a 
class I used in my pre-TS work and I have missed it all these years. It's a joy 
to finally be at a point I can bring it back.

[ Full content available at: https://github.com/apache/trafficserver/pull/4222 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to