3 ms·
You sometimes see sentinel values used with varargs (only if they're all the same type), which is basically just an array with more boilerplate. That being sai
by ByteJockey 6y ago
You sometimes see sentinel values used with varargs (only if they're all the same type), which is basically just an array with more boilerplate.
That being said. Length as a first parameter and the rest of the arguments being the variadic bit is also quite normal.