It didn't have to be a function, it's just a convenience that makes it easier to implement ViewEnvironmentKey, should have written it two years ago. I'd like to make a pass and use it universally after this merges.
Originally posted by @rjrjr in #712 (comment)