|
|
|
|
|
by alptrv
4709 days ago
|
|
Well, that depends on your starting point, if you're a private state proponent then it may be a hack for you. I'm more of a control freak and I'm on a side of 'everything is public, lets code by interface', so for me private state is a bit of a hack that some languages have because some other languages have it and and some other languages have because it was introduced in languages before them. My point was that the lack of private state in Python didn't made impossible to separate inner implementation from public interface. Why not make everything global? For obvious reasons - modularity, memory consumption, and inconvenience of lengthy variables names. |
|