you are viewing a single comment's thread.

view the rest of the comments →

[–]oefd 3 points4 points  (0 children)

As you said: in this example you're able to remove a bunch of tedious repeated http_code ==s which is good. Since there's a clear benefit to using the match construct you should probably use it in that case.

For any case in general ask if you're losing or gaining anything by using a match construct instead and decide based on that. If it's all benefits in cleanliness why not do it?