Re:Enumerated types can get in the way of fast and safe iter...
by josh_rosenblum on Wednesday November 13, 2013 @05:33PM
(#6729147)
Default cases can be helpful. Unfortunately, with generated serdes (as in Thrift, Avro, or Protobufs), you may not have control over the decoding or ability to customize the default case. For some of the details WRT Thrift in particular, there's a related discussion underway on the user mailing list now:
http://mail-archives.apache.org/mod_mbox/thrift-user/201311....