IMO, (proper) APIs are always better than ambient global state manipulation . In this case, that argument really should be a
#[non_exhaustive] enum
of potential states, not just a bool
.
9 Likes
IMO, (proper) APIs are always better than ambient global state manipulation . In this case, that argument really should be a
#[non_exhaustive] enum
of potential states, not just a bool
.