Thank you guys for the answers. Rob, I don't use this code technique (firs example) either
, just noticed this in some places in projects I'm working on and started to think what might be a reason of doing this and any possible associated issues, as I didn't notice inside the project's code any obstacles of using the "standard" way (second example). I think it is also a matter of how different people are used to write the code etc.
...the code:
seems more sensible to me in my specific case than the code in first example.