Reason for a certain code format

I see people use 2 different types of (" "), " " whatever they are called.
Any benefits?

What does everyone personally use?

  1. game:GetService"UserInputService"
  2. game:GetService("UserInputService")
  • 1
  • 2

0 voters

is number one even correct when it comes to syntax? I’ve never seen it used.

Surprisingly, it does work. I just tested it in a random script and printed it, and it actually printed the item.

1 Like

There’s no benefit between them.

Second option is much more preferred because it allows other programmers to read the arguments easier. I’m pretty sure it’d be cursed to see myFunction”Hello World!”, ”John”.

It also helps maintaining consistency in reading since () is required to use the function without argument and you also have to consider that you won’t be able to use variables without having a beginning and end which separates the arguments from the function.

1 Like

let me tell you i use game.UserInputService

it does bud