You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An implementation could avoid accepting strings in constructors by forcing users to choose from an Enum of possible units/dimensions. Would this be reasonable? If so, do we want to avoid forcing strings to be accepted?
The text was updated successfully, but these errors were encountered:
You could require that composite units are composed via operations on their individually constructed parts?
This does seem like a bit of a reach, and if all current libraries are happy to accept strings then I don't think we need to worry about this. Just wanted to flag it as not absolutely necessary.
An implementation could avoid accepting strings in constructors by forcing users to choose from an
Enum
of possible units/dimensions. Would this be reasonable? If so, do we want to avoid forcing strings to be accepted?The text was updated successfully, but these errors were encountered: