Hacker News new | ask | show | jobs
by morelisp 1326 days ago
`5 * time.Milliseconds(2500)` is not a type error, though `int(5) * time.Milliseconds(2500)` is.

(This is especially relevant because you really mean `5 * (2500 * time.Millisecond)` vs. int(5) * (2500 * time.Millisecond)`, as there is no `time.Milliseconds` function.)

1 comments

Thanks, I don't remember exactly how it worked. It doesn't take away from the stupidity.