|
|
|
|
|
by adrianmonk
1319 days ago
|
|
Yeah. Often, writing out the type explicitly is just busywork. But it seems it would have paid off here. If you were forced to stop and think what type to declare, I bet you'd write "var rule *Rule". Even if you don't think deeply and just look at the return type. And then if you assigned "r[i]" to "rule", you'd get a type error. |
|