I was wandering whether there is currently a way of representing C++ style
static variables in Julia. I haven’t found out how and I think they are pretty useful - especially when dealing with lots of object instances that share updatable properties.
static keywords are used both within functions and within classes/types as system-wide but not necessarily global variables that can be updated for example https://www.studytonight.com/cpp/static-keyword.php
As with C++ it would also be useful to be able to specify whether the static variable is thread local or not.