|
|
|
|
|
by burntsushi
3328 days ago
|
|
> But wouldn't that have more to do with the different approaches to memory management? What makes you say that? Rust's approach guarantees more type invariants. I don't buy for a second that type inference has much to do with this. Firstly, Rust has type inference, it just isn't global. Secondly, I've found that type inference everywhere makes the cognitive load much worse, not better. And I wasn't actually drawing a correlation between cognitive load and expressiveness. Namely, expressiveness isn't the final word. Much of PL theory is devoted not just to improving expressiveness, but making that expressiveness more accessible to the masses. Compare Haskell with System F, for example. |
|