Underscore prefix for lodash functions and private variables #85
-
I often see underscore prefix for private variables, won't be confusing having underscore prefix for lodash functions like below? The underscore prefix helps me to note that is a lodash function but feel it may confuse user that is a private variable 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
something agreed |
Beta Was this translation helpful? Give feedback.
-
som lodash info https://itnext.io/lodash-es-vs-individual-lodash-utilities-size-comparison-676f14b07568 |
Beta Was this translation helpful? Give feedback.
-
I think for now it's fine to keep using But I also agree that if we were to use |
Beta Was this translation helpful? Give feedback.
I think for now it's fine to keep using
_
when importing lodash functions, as is doesn't seem that any of us use_
to mark private variables and functions.But I also agree that if we were to use
_
for private variables and functions, then we shouldn't also use it for lodash. Then we would have to come up with a different solution.