Quick question regarding capitalization of methods

Greetings! So yeah, this is a really quick question. So, for stuff like connect, or wait, or things that I can link to events, I’ve heard that using lowercase on these keywords is deprecated, and that we should use uppercase on the first letter instead? Or, vice-versa. Not exactly sure if this is true or not, and if it is true, which way is better to use.

Quick example if needed:

my_event:Connect(blah)

my:event:connect(blah)

Thanks!

The lowercase versions of such methods are being/have been deprecated. Use the capitalized versions if possible. This is to ensure your code will keep working in the future if they completely remove them.

1 Like

Thank you! That’s what I originally thought. :slight_smile:

Mm, lowercase methods were deprecated in favour of PascalCase usage. They probably won’t remove the legacy versions since crusty old things like game:service still work, but you should use the new versions for your work going forward because it’s bad practice to use or rely on deprecated items.

5 Likes