I believe you could use the “computed field names” support in dotty/docs/_docs/reference/experimental/named-tuples.md at named-tuples-2 · dotty-staging/dotty · GitHub to avoid the conversion.
3 Likes
I believe you could use the “computed field names” support in dotty/docs/_docs/reference/experimental/named-tuples.md at named-tuples-2 · dotty-staging/dotty · GitHub to avoid the conversion.