Skip to content

Naming style for generated identifiers #35

Discussion options

You must be logged in to vote

Use the same syntax as Babel

Uuids:

  • _name
  • _name2
  • _name3

Pros

  • Quickly know that an identifier was generated because it starts with _
  • Keep the original name as part of the generated identifier

Cons

  • It would be confusing of the original identifier was named var0, because then the generated identifiers would be named _var0, _var02, _var03, which looks confusing
  • Need to watch out for a bug with original var names var and var1. They both generate as _var###

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChocolateLoverRaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant