4 ms·
Does Lua have official style conventions? Most Lua code I've seen is in lower or snake_case, but this seems to be camelCase. I've never mixed and matched before
by Rivide 5y ago
Does Lua have official style conventions? Most Lua code I've seen is in lower or snake_case, but this seems to be camelCase. I've never mixed and matched before, and I don't know if it's a big deal.
- paulclinger 5y agoI don't think there is an official style convention, but there are popular style guides; for example, this one [1] is using the same style for variable naming. I do use all lowercase for most of my other Lua projects, but I thought camelCase could work better for this one. [1] https://github.com/Olivine-Labs/lua-style-guide#variables https://github.com/Olivine-Labs/lua-style-guide#variables