2 ms·
Test/dev environments are something else I can think of. For example, you might want a different dependency in a dev environment, but you don't want to write te
by tadfisher 11y ago
Test/dev environments are something else I can think of. For example, you might want a different dependency in a dev environment, but you don't want to write tedious "if (env == dev) return foo else return bar" code in your getter, which also couples the hosting class to the environment in which it's running.