makeit icon indicating copy to clipboard operation
makeit copied to clipboard

Provide method to reassign to already set field

Open estebank opened this issue 3 years ago • 0 comments

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.

estebank avatar Feb 21 '22 15:02 estebank