BurningWitness:
tomjaguarpaw:
if
IOScopedRefexisted then I could instantiate theLoggerargument towriteUserDatato get the behaviour I desireYes, though I would object to this feature being implemented like that.
Sorry, what feature? Do you mean I shouldn’t use IOScopedRef (if it existed) to get the behaviour I desire, or IOScopedRef shouldn’t be implemented? In either case, what do you object to?
BurningWitness:
tomjaguarpaw:
I don’t know what “with references” means.
As in with either
contextualvalues I outlined above orIOScopedRef.
With “references”, the libraries providing Logger and writeUserData need not know anything about the existence of “references”. Only the caller need use them.