You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to reassign an already initialized field is through a mutable pointer, under the assumption that assigning to the same field multiple times is a mistake, but for some use-cases, like writing tests this is a useful feature and not a mistake. Provide a separate method to set_foo as a way to make the users' intention clearer.
The text was updated successfully, but these errors were encountered:
Currently the only way to reassign an already initialized field is through a mutable pointer, under the assumption that assigning to the same field multiple times is a mistake, but for some use-cases, like writing tests this is a useful feature and not a mistake. Provide a separate method to
set_foo
as a way to make the users' intention clearer.The text was updated successfully, but these errors were encountered: