|
|
|
|
|
by brobinson
1439 days ago
|
|
>Wouldn’t I still have to check for NoScore? That's right, and the compiler will reject programs where you don't do this. It's a set of safety rails for your code. You pay a dev-/compile-time cost in exchange for your programs not exploding at runtime. |
|
> In your example, you still have to manually check if there's a value every time, but this is not compiler-enforced.