3 ms·
It's idiomatic. Type annotations aren't enforced at runtime.
by heavyset_go 6y ago
It's idiomatic. Type annotations aren't enforced at runtime.
- int_19h 6y agoIt's not idiomatic to force a specific type like that even so. Idiomatic code would accept any type that has the same operations (and their semantics) as int.