|
|
|
|
|
by kuschku
3423 days ago
|
|
Because the stdlib is using them more and more? As someone mentioned, even closing an already closed channel can panic. Calling the random number generator with a negative limit panics. And there’s nothing like checked Panics so you’d know if one will happen or not. |
|
Calling a number generator with a negative limit is also a programmer fault, so no reason to provide an error here.