|
|
|
|
|
by thedudemabry
4126 days ago
|
|
That's reasonable, but it seems to be equivalent to creating a top-level function and associated global variable in other languages. Java's prohibition of those constructs necessitated the class wrapper, but doesn't appear to provide any benefits over another more generalizable method, namespacing. |
|
I suspect dependency injection has the same problem: you could achieve the same results in a non-object-oriented language.