I have recently changed up my style to use camelCase for keys and module functions as opposed to PascalCase. This is in accordance with the Roblox Luau style guide found here:
But, in the actual documentation, examples are the opposite. For example, the code here:
-- Dictionary table
local characterData = {
CharName = "Diva Dragonslayer",
CharClass = "Rogue"
}
…keys are written in PascalCase! Now I know why I was doing it like that before!
I find that camelCase makes differentiating between Roblox classes and user-created classes easier, (ex. part:Destroy() versus myClass:destroy()), but it has been awkward for tables of instances (ex. {part = game.Workspace.Part} “feels” weird, but {Part = game.Workspace.Part} “feels” better).
What do you all use? What are the advantages and disadvantages? Some might argue it doesn’t matter, but I am curious to learn from you all if you have a preference.
