It's just a question of code style. The performance of both techniques is pretty the same