(no title)
K0nserv | 1 month ago
Tbf this applies to Rust too. If the author writes
fn foo(bar: Box<dyn BarTrait>)
they have forced the caller into dynamic dispatch.Had they written
fn foo(bar: impl BarTrait)
the choice would've remained open to the caller
nicoburns|1 month ago
bfrog|1 month ago
bsaul|1 month ago