4 ms·
> How about for a change designing a language where generics are part of the initial design instead of just getting bolted on later? Muttering about Rust at th
by SideburnsOfDoom 8y ago
> How about for a change designing a language where generics are part of the initial design instead of just getting bolted on later?
Muttering about Rust at this point.
Exactly. Generics being there from the get-go makes a difference to the language design. The most visible example being how values are returned from functions, when the result is tuple return for success case or error case. Bolting that on later is unlikely to work well.
https://doc.rust-lang.org/std/result/ https://doc.rust-lang.org/std/result/