Hacker News new | ask | show | jobs
by barrongineer 2930 days ago
I dunno, to me it makes perfect sense that you would need to convert it to a duration.

time.Second * time.Duration(userInputInt)

1 comments

the units on that would be time squared. As a scientist, this makes my brain explode.

https://en.wikipedia.org/wiki/Dimensional_analysis

For the record, at least two languages, F# (which is statically typed) and Julia (which is strongly typed) do this 100% correctly