Prefer Specific things.
Like Empty
It's a bit better than
It's most likely implemented as a static, so you don't have to allocate an empty list.
It shows clarity. You intend to return a empty collection. No one will ever wonder if you had omitted to add something to the list.
No comments:
Post a Comment