ConfigGenerator icon indicating copy to clipboard operation
ConfigGenerator copied to clipboard

Making `Config` a singleton

Open 0x6d6e opened this issue 7 years ago • 0 comments

Very handy tool. One observation though. Currently the Config class that is auto generated is initializable. So we can do something like let configInstance = Config(). Honestly though I am not sure whats wrong with that, but probably Config would be better off as a singleton or at least a private initializer. Cause we really dont want to instantiate Config

0x6d6e avatar Mar 20 '18 08:03 0x6d6e