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
Currently some functions are stirngly typed and this leads to quite some confusion around them.
For example in deriveFrameworkNameAndVersion the return type is [(FrameworkName, Version)] which is just an alias for [(String, String)]. This is not optimal as it's possible to mix up FrameworkName with Version later down then code.
If FrameworkName and Version were defined using newtype instead of type mixing FrameworkName and Version would not be possible.
Rome version: v.0.6.1.11 OS and version: MacOSX 10.11.6 - El Capitan
The text was updated successfully, but these errors were encountered:
Refactor all the
type Something = String
tonewtype Something = Something String
Steps which explain the enhancement
to
to
Current and suggested behavior
Currently some functions are stirngly typed and this leads to quite some confusion around them.
For example in deriveFrameworkNameAndVersion the return type is
[(FrameworkName, Version)]
which is just an alias for[(String, String)]
. This is not optimal as it's possible to mix upFrameworkName
withVersion
later down then code.If
FrameworkName
andVersion
were defined usingnewtype
instead oftype
mixingFrameworkName
andVersion
would not be possible.Rome version: v.0.6.1.11
OS and version: MacOSX 10.11.6 - El Capitan
The text was updated successfully, but these errors were encountered: