On Thursday, 18 October 2018 at 19:19:53 UTC, Samir wrote:
They both seem to work. Is one preferred over the other?
No difference. The compile will just transform o.f into f(o) if it can. They both do the same thing and it is just a different way of writing it.
Which is better simply depends on which one reads better to you.