The more, the merrier! Login and vote now.
By HamletDRC
via gbracha.blogspot.com
Published: Feb 18 2008 / 16:09
By HamletDRC
via gbracha.blogspot.com
Published: Feb 18 2008 / 16:09
Comments
hohonuuli replied ago:
What a load of hooey.
daniel replied ago:
Quite correct. Unfortunately, imperative languages without platform-level support for singletons will constantly find themselves encouraging the use of static. Obviously it should be minimized, but no one ever seems to be able to get rid of it entirely. This is part of why Scala is so awesome: it gives you all the benefits of static without the rampant downsides. In fact, it makes it easy to avoid statics altogether (by relying more on local, immutable state).
Will static disappear eventually? Oh yeah. But I doubt that it's going anywhere any time soon.
evarlast replied ago:
@daniel I don't see why it cannot be eliminated completely. IoC containers like Spring or Guice take service location trump it with using the container.
Voters For This Link (24)
Voters Against This Link (8)