Talk:Lua Style Guide

From Legacy Roblox Wiki
Revision as of 17:53, 22 January 2012 by >JulienDethurens (→‎lowerCamelCase: new section)
Jump to navigationJump to search

I wrote mine first =P These two articles should be merged. This is the better title.

Merlin11188 | Talk | Send Message | E-mail | Wiki Writer
15:07, 22 January 2012 (UTC)
Yours isn't the same. The style guide is all about how to name identifiers and typeset code. Yours is more about writing code that does things in the right way, and how it is valuable to comment.
15:23, 22 January 2012 (UTC)
That's true. I'll leave mine up, and redirect them here when they just have bad style :D
Merlin11188 | Talk | Send Message | E-mail | Wiki Writer
15:37, 22 January 2012 (UTC)

lowerCamelCase

I believe the part that says they should write their code in lowerCamelCase is completely biased. There are many scripters that use camelCase and many scripters that use PascalCase and neither is better than the other. There are recommendations that are universal, such as indenting, but camelCase is definitively not. There are even users that use underscores (I sometimes do), or no spaces at all (which I'd name luacase, as that's how the Lua libraries actually work: gsub, newproxy, getfenv, setmetatable, etc). I think we should remove that part.