News for hackers. Stuff that matters.
Re:Python alternatives for PHP functions by smsm42 on Wednesday December 26, 2012 @01:47AM (#4968446)
Nothing wrong with it. Like nothing wrong with having nl2br function. Some don't need private class members. Some don't need nl2br. The wrong is when people think whoever doesn't need exactly what they need is dumb.
Re:Python alternatives for PHP functions by lucian303 on Wednesday December 26, 2012 @02:59PM (#4970619)
True, but why bake it into the language if it's not enforced? Most OOP requires encapsulation which requires private members and the ability to enforce this privacy. It should not be up to the user to enforce it, as that will never happen.