Naming Conventions?

Posted by Graymane on Mon 14 Jul 2014 11:42 PM — 3 posts, 14,054 views.

USA #0
I'm not sure why this is nagging me, I really do have better things to do, but I am not a lua developer by trade. What are some common style guides for naming in lua? I've tried CamelCase, under_scores, javaCamelCase, etc. I've looked around online and haven't seen a widely adopted style like one would find in other languages.
Australia Forum Administrator #1
I must admit I am not very consistent myself, flopping from under_scores to CamelCase to javaCamelCase from time to time.

The Lua libraries themselves tend to use all lowercase, however the MUSHclient API generally uses CamelCase.

I'm leaning towards javaCamelCase these days. It doesn't really matter, but you may as well try to be consistent (with yourself).
USA Global Moderator #2
Quote:
I'm not sure why this is nagging me, I really do have better things to do, but I am not a lua developer by trade. What are some common style guides for naming in lua? I've tried CamelCase, under_scores, javaCamelCase, etc. I've looked around online and haven't seen a widely adopted style like one would find in other languages.

Eh. Worry less.