gm_voxelate icon indicating copy to clipboard operation
gm_voxelate copied to clipboard

fix naming conventions

Open SwadicalRag opened this issue 7 years ago • 2 comments

The exposed C++<->Lua api is fairly consistent, but the pure Lua API is messy as fuck.

Here's how I'm doing it:

  • local vars are simpleCaseCamelCased
  • global vars are UpperCaseCamelCased, with the exception of gm_voxelate
  • class methods are UpperCaseCamelCased
  • avoid using snake_case because it looks weird af tbh

Thoughts @birdbrainswagtrain ?

SwadicalRag avatar May 15 '17 07:05 SwadicalRag

Sounds good to me. I have some additional minor name changes that I might make to the lua API. I also might continue using sexy_snake_case for locals because that's how I roll.

MDFL64 avatar May 15 '17 07:05 MDFL64

all good as long as the exposed API is consistent :v

SwadicalRag avatar May 15 '17 07:05 SwadicalRag