4 ms·
The practice of converting enum-like keys into their string representation by using toString, toLower, etc seems convenient but gets very contrived very fast. H
by lxe 6y ago
The practice of converting enum-like keys into their string representation by using toString, toLower, etc seems convenient but gets very contrived very fast. How do you deal with underscores? What about using the message in a sentence? I say, use the enum in your code as a conditional or something but always explicitly write out the messages intended for the user.