i think it's clearer and probably more efficient t...
# announcements
m
i think it's clearer and probably more efficient to write it that way. if you use
hashSetOf<Type>()
then your code reads badly: "hash of .... what?", but there's nothing there. and you're relying on the compiler to be able to optimise out the varargs array. i don't know if varargs are special cased for when you pass nothing. maybe they are.