print(firstname, lastname)
for example is more readable than print((firstname, lastname))
especially since I would then have to write print((surname,))
to just print a single string.Variadic functions are rather classic, I think Go, Rust, C and JavaScript also have them.
There are a couple funny things about this:
1. A personal name of three syllables is stranger than a surname of two.
2. Double-syllable surnames are unusual, but definitely not unheard of. This girl told me that she hadn't been allowed to receive the double surname 吕郎, because it was too long. I asked what would have happened if her double surname had been 司马 instead. "That's different!"
(If the government of China tried to pick a legitimacy fight with the name 司马, it would lose, and everyone knows this.)
So this almost looks like an example of the kind of thing you're referring to, except that the database scheme has nothing to do with it. A surname that was nontraditional but within the technical norms was rejected in favor of a personal name that was both nontraditional and well outside the technical norms.
What do you do with your first example if you have a list (generated at runtime, not a static one) to pass to the function? This wouldn't work (imagine the first line is more complicated):
l = (1,2,3)
print(l)Something I keep relearning is that people are different, sometimes in ways hard for me to comprehend :)
xs = (1, 2, 3)
f(*xs)
is equivalent to f(1, 2, 3), not f((1, 2, 3))