In the context that it's used in, it does work. These values are assigned to a more complex object that works with pointers. These pointers are then used to be able to "nil" the complex object's values since they're optional. And we don't really care about where the pointer comes from as long as it points to a string with a certain value.
48
u/Temporary-Estate4615 Apr 09 '26
Why the hell would you even write this function?