3 ms·
If the language in question disallows function overloading, this distinction becomes very clear. For an example, see Rust option's unwrap_or[1] vs unwrap_or_els
by jrpelkonen 2y ago
If the language in question disallows function overloading, this distinction becomes very clear. For an example, see Rust option's unwrap_or[1] vs unwrap_or_else.
[1] https://doc.rust-lang.org/std/option/enum.Option.html#method.unwrap_or https://doc.rust-lang.org/std/option/enum.Option.html#method...)