Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update comment on variable expansion
I once thought that `Variable::expand` should require mutable self because `Quirk::Random` would require mutable access to the random number generator. However, mutable access to `Variable` depends on `VariableSet::get_or_new`, which may bring on unexpected side effect of creating a new variable when the variable does not exist. Now I think that `Quirk::Random` should resort to internal mutability with `RefCell` instead of requiring mutable access to `Variable`. This commit updates the comment to reflect this change.
- Loading branch information