|
|
|
|
|
by moldavi
1299 days ago
|
|
You know nothing of what I'm programming. You don't know when, whether, or how my program accesses or deletes data. You don't know what domain I'm in, whether I'm on a team, or what our priorities must be. And yet, you proclaim that your approach is how I should always do it in any language, in any situation. It strikes me as particularly convenient, seeing as that's the only approach that the borrow checker can reason about. To make it more concrete: if we apply your solution everywhere we run into this problem with the borrow checker, it can flatten a lot of our program's (non-temporary) state into basically relational tables. Sometimes that's okay, but for a lot of situations it can be bad for encapsulation, velocity, and modularity. |
|