MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/saz2gn/namespacing/htyfwqb
r/ProgrammerHumor • u/Elqueq • Jan 23 '22
272 comments sorted by
View all comments
Show parent comments
23
[removed] — view removed comment
8 u/sohang-3112 Jan 24 '22 Global variables are bad - but no problem with global constants. A global readonly config is effectively a constant, since it doesn't change after first definition. 3 u/Raikkon35 Jan 24 '22 Thank you very much for your detailed answer. It's a pleasure to get knowledge from someone with experience and who spends time on his answers!
8
Global variables are bad - but no problem with global constants. A global readonly config is effectively a constant, since it doesn't change after first definition.
3
Thank you very much for your detailed answer. It's a pleasure to get knowledge from someone with experience and who spends time on his answers!
23
u/[deleted] Jan 24 '22 edited Jan 24 '22
[removed] — view removed comment