When connecting events to wait, should it be capitalized or lowercased?

Hey guys, so this is just another quick question I’ve been wondering about. I did find out I should be using Connect and not connect when connecting an event to a function, but I wondered if it’s the same for the wait method. I know if you’re not connecting wait to an event and you’re just calling wait, then I’d use lowercase as it says the capitalized version is deprecated. Just wondered if it should be uppercased or lowercased when connecting it to an event. Thanks!

3 Likes

Capital is the standard now
(except for wait(t))

5 Likes

Thanks guys!

wait() isn’t deprecated, that’s standard. Wait() is an alias for wait() and the PascalCase version of it is also deprecated.

image

PascalCase is expected for methods of services, such including Connect.

@Notwal Not just wait. There are other exceptions as well, such as the standardised libraries.

3 Likes

The wait() global is lowercase because globals are lowercase by convention.
The :Wait() member is uppercase because members are pascalcase by convention.

3 Likes