I don't like it, because it turns encapsulation on its head. Encapsulated methods become special-case static methods instead of just encapsulated methods. It doesn't make sense. What's wrong with "encapsulated except where static"? |
|
ADDA
Fortran
BASIC and all derivatives (VB, QB...)
C
C# and all derivatives (Cocoa, Carbon...)
C++
Java
Pascal
Assembly (MIPS, Intel, PPC...)
HTML and all derivatives (XML, XHTML...)
I don't like it, because it turns encapsulation on its head. Encapsulated methods become special-case static methods instead of just encapsulated methods. It doesn't make sense. What's wrong with "encapsulated except where static"? |
|
Python's double underscore name mangling is enough in the way of encapsulation for me. Unless I am misunderstanding you, since the programmers still call methods in Python by the usual object.method() syntax, the only oddity with which one could fine fault is the explicit "self" parameter. See my last post for more on this. |
|
Bookmarks