getEnv returns a
String, so as someone who bases my internals on
Text, I generally just pack/unpack and carry on… but this time I was wondering, if there was an existing
Text variant, but that question quickly morphed into: why isn’t there a
getEnv variant that returns
I attempted to answer my own question, but only came up with partial answers that were about other aspects of the String/Text problem.
I also briefly thought about adding my own and sending in a PR, but couldn’t determine whether or not I’d be wasting my time raising the discussion to the core libraries committee.
Feedback is appreciated, thank you!