Hacker News new | past | comments | ask | show | jobs | submit login

This works if you can guarantee the variable will not ever change after being set which is not unreasonable for configuration options.

However if you are dealing with variables that can mutate in a concurrent environment, you might have a race condition if you pass by pointer reference rather than by value




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: