Naming style for generated identifiers #35
Answered
by
ChocolateLoverRaj
ChocolateLoverRaj
asked this question in
Planning
-
Many plugins need to generate identifiers that were not already part of the code. These identifiers need to not conflict with existing identifier names. For example, in Babel, generated identifiers are called |
Beta Was this translation helpful? Give feedback.
Answered by
ChocolateLoverRaj
Jan 21, 2023
Replies: 1 comment
-
Use the same syntax as Babel Uuids:
Pros
Cons
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChocolateLoverRaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the same syntax as Babel
Uuids:
_name
_name2
_name3
Pros
_
Cons
var0
, because then the generated identifiers would be named_var0
,_var02
,_var03
, which looks confusingvar
andvar1
. They both generate as_var###