Comments by "p11" (@porky1118) on "Val - The Rust Killer | Prime Reacts" video.
-
8:15 Yup, that's how things should be done. Always be more restrictive by default, and in order to allow more, you have to add more code.
That has been my philosophy since I'm using Rust. Or when I think about it, even before I started using Rust.
I defned some language for stories, where you can define something like this:
a -> b | c -> d
Which means "Scene a first, then either scene b or c, then scene d"
And if you defined "a -> b & c -> d", it means the same, but "both, scene b AND c"
But when you define both of these at once, always the less restrictive variant is used, which means, after a comes b AND c, but d only needs b OR c to be finished.
Not exactly the same, but probably similar.
3
-
1