|
|
|
|
|
by ajuc
961 days ago
|
|
Static-everything is such a gimmick in my opinion. It sounds great until you try to do something useful with your code. It's almost never the case that people actually want to hard-code stuff in the source code. Almost always you read configuration files at run-time (like sudo does) and change your behavior depending on run-time information - so you will have run-time errors. |
|
In your case, a config object would be mutable inside the function that loads it from disk into memory, then read-only everywhere else by default.