These both appear to be equivalent, but the main difference is that the second one is understandable by the next person to maintain it and the first one it not. The comma operator is a strange way to have multiple statements executed on the same line. It wouldn't pass my code review.