First, I acknowledge the possibility that this question could be a duplicate; just let me know.
I\'m curious what the general \"best practice\" is for those situatio
Related Question: "You mentioned that local mutable values cannot be captured by a closure, so you need to use ref instead. The reason for this is that mutable values captured in the closure need to be allocated on the heap (because closure is allocated on the heap)." from F# ref-mutable vars vs object fields
I think let mutable is preferred over reference cells. I personally only use reference cells when they are required.
Most code I write doesn't use mutable variables thanks to recursion and tail calls. If I have a group of mutable data I use a record. For objects I use let mutable to make private mutable variables. I only really use reference cells for closures, generally events.