Closed drodil closed 3 years ago
True. I can add it and then work on other units as well 👍
Ok, sounds good to me. Could you also squash the commits into one?
Sure thing, done!
Great! Please merge when you can; I will continue with other units after that!
Merged, thank you!
This functionality adds possibility to pass a string value to create new Temperature unit. If the string value ends with the symbol of the unit, it will create a Temperature from that unit, otherwise it will default to Celsius. Empty string values are considered also as 0.0 degrees Celsius.
Additionally this same can be added to other units as well but I am first looking forward from hearing from you what do you think? We actually created builders for this in our project https://github.com/drodil/rustybeer so that user can input units easily from the command line.