News

Use the static keyword for functions and variables at the file level when you want them to behave like quasi-globals, being accessible everywhere within the file but hidden from the outside.
When it comes to API design, static classes are a bit of a bugbear. Quite often there are arguments both for and against exposing a given function as a static function as opposed to an instance ...