|
|
|
|
|
by aw1621107
49 days ago
|
|
> The problem is that this still runs into complexity problems and does not scale to non-toy programs. Right; that is why Rust's borrow checker was designed to be intraprocedural only. That obviously is a tradeoff of its own: now functions need to be annotated to convey information across function boundaries, and the annotations picked will influence what can and cannot be expressed. > IMHO a middle ground with some annotations is realistic and would be far more convenient than a borrow checker when supported by good tooling. I'd be interested in seeing what such a middle ground looks like, particularly in respect to what tradeoffs it makes! |
|