3 ms·
The author tries too hard to avoid using the word "object". "Must use" objects don't seem to be all that useful. More justification is needed. Is the author t
by Animats 10y ago
The author tries too hard to avoid using the word "object".
"Must use" objects don't seem to be all that useful. More justification is needed. Is the author thinking of Javascript-like callback approaches, broken "promises", and such?
- moosingin3space 10y agoRust's Result type is a "must use" type, which makes it impossible to skip an error check.
- Animats 10y agoCan you assign it to a variable and then ignore it?
- steveklabnik 10y agoYes, assignment counts as a use. That will get you an "unused variable" warning though, which you can suppress by binding to _ instead.
- Thiez 10y agoHardly impossible, just prefix the expression with `[` and suffix with `]` and the warning is gone. Or with `(` and `,)` (creating a tuple of arity one).