Programming languages without static properties/methods?
Well I wonder if there are OO programming languages that do not have
statics in their language construct(either static keyword or anything
equivalent to declare something as static), therefore eliminating the
presence of static properties/methods. Statics are not really OOP, they
are procedural code in disguise and usually are considered bad smells in
OO software.
If a language has powerful dependency injection support while does not
support statics/globals, it will enforce way better OO practices. I
personally think in Java and C# statics should be removed from language
core by their next releases. But until then, I'd like to know if there
already exist programming languages that already eliminate the presence of
static bad smell?
No comments:
Post a Comment