SyntaxFix
Write A Post
Hire A Developer
Questions
The second one would be preferred:
However, having two different types of object in the same list has a bit of a bad design smell. We need more context to speak on that.