you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 2 years ago

Yes absolutely, the parameter even if not in a strongly typed language should be a specific number and the unit should be implied. Overload the method to support different units if necessary or provide a unit as an additional parameter instead of forcing the method to parse the string for any unit type hints that may or may not be there

  • source
  • parent