June 08, 2008Are static useful?
Hello, Maybe some will find this blog useful: the author thinks that language would be better without statics: http://gbracha.blogspot.com/2008/02/cutting-out-static.html Regards, renoX
June 09, 2008Re: Are static useful?
Posted in reply to renoX
renoX wrote: > Hello, > > Maybe some will find this blog useful: the author thinks that language would be better without statics: > > http://gbracha.blogspot.com/2008/02/cutting-out-static.html > > Regards, > renoX I'm not sure what he means by "static" in that article, but I guess he means any global state ("static" variables in Java, which he seems to be referring to, are jut namespaced global variables). I agree that global variables have issues, but to answer the question in your title, they ARE useful (certainly the "singleton pattern" is not an improvement).
Copyright © 1999-2016 by Digital Mars ®, All Rights Reserved