I actually mean lambdas and IIFE's.
Also, should they be local, especially if they are very small?
I actually mean lambdas and IIFE's.
Also, should they be local, especially if they are very small?
For further actions, you may consider blocking this person and/or reporting abuse
Abdolah Keshtkar -
Prakirth Govardhanam -
Vishnu Satheesh -
uliyahoo -
Top comments (3)
If the name adds useful nuance which is not obvious from the implementation, then by all means.
if it's more than 1 line of code yes, if it's just a 1 liner like regex and lambdas then it should be ok to not name it. But it should clear for anyone who comes in to maintain your code.
Imo If they are inline its fine not to name them.