|
|
|
|
|
by vaibhavkul
3732 days ago
|
|
Maybe this is off topic, but while reading this article it occurred to me that wouldn't it be useful if the ownership transfer is syntax highlighted? e.g. in let new_owner = original_owner;
println!("{}", original_owner);
we could have original_owner on the second line have a different color signifying it doesn't own anything.Or, does such a syntax highlighter already exist? |
|
Or do you have a more specific visualisation for moves/ownership in mind?