Variables in functions ... What is best?

A union is itself a unique entity commonly known as a type. Multiple typed names shouldn't be mixed in usage to conform to standard.