|
|
|
|
|
by Pxtl
3331 days ago
|
|
Not a Rust guy, but it looks like a way to say "this option value is required and if it is not present, crash with the following error". So "expect" is a fair name, since it means a value is expected and the absence of a value is unexpected. I could see "required" or "require" as a better name. Or even just break the "positive names" rule and go with "notOptional". |
|
Instead of
and and One could write and and Something like that.