Benefit of no parenthesis in service calls

Hello, I recently learnt that you can call services without the parenthesis () and I was wondering if there is speed reason as to why you’d want to do this, or if this is purely a stylistic decision.

local PlayersA = game:GetService "Players"
local PlayersB = game:GetService("Players")

I tried to do my own research and I did come to the understanding that there is no bytecode difference, so I’m assuming that there wouldn’t be a speed difference, but I’m not confident in that.

I also don’t want to use one in case it may break in the future, and that’s a big concern of mine.

1 Like

This is valid syntax and has no effect on performance. However, I don’t understand why anyone would want to leave them out, as the resulting code looks hard to read.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.