You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now if I were to have another file that's exactly the same content but with myFunction changed to myFunctionA it wouldn't work
since I am willing to accept the module to be auto opened, and would like to open the name space then have all the functions accessible to me while implementing them in seperate files, I eneded up replacing the name handler with random string
Therefore, based on the usage I personally had I have a suggestion, I would reserve a special name for module that indicates I don't care what name it is. Alternatively, allow putting functions directly under namespace without being inside a module. Behind the scene it generates a random string for the module name
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
say I have a file like this
now if I were to have another file that's exactly the same content but with
myFunction
changed tomyFunctionA
it wouldn't worksince I am willing to accept the module to be auto opened, and would like to open the name space then have all the functions accessible to me while implementing them in seperate files, I eneded up replacing the name
handler
with random stringTherefore, based on the usage I personally had I have a suggestion, I would reserve a special name for module that indicates I don't care what name it is. Alternatively, allow putting functions directly under namespace without being inside a module. Behind the scene it generates a random string for the module name
Beta Was this translation helpful? Give feedback.
All reactions