News for hackers. Stuff that matters.
Re:The type system is a programmer's best friend by morelisp on Saturday November 05, 2022 @05:39PM (#33486109)
`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.)

Re:The type system is a programmer's best friend by xigoi on Saturday November 05, 2022 @05:58PM (#33486299)
Thanks, I don't remember exactly how it worked. It doesn't take away from the stupidity.