The latest Scala Times newsletter mentioned an enumeration macro library. I looked at its README and was impressed at how many integrations it has, which also shows how large Scala's ecosystem is. Not saying we should use it in Daffodil, just saying FYI, this is a library worth knowing about.
https://github.com/lloydmeta/enumeratum enumeratum<https://github.com/lloydmeta/enumeratum> A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations. MIT license <https://github.com/lloydmeta/enumeratum/blob/master/LICENSE>