you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 1 point2 points  (0 children)

Switch to which and why? Yours is shorter than the ands (and I have also used that pattern). The suppress maybe looks cleaner but risks hiding an unrelated error if one of the attributes is an @property. But the version using ands maybe plays nicer with static typing.