Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IIRC the property overloading in PHP is slow, especially compared to hardcoding the getters and setters, so you're better off hardcoding them. Property overloading in itself is a neat feature for syntactic sugar, for example an object with (semi-)dynamic properties like in an ORM. Other properties of classes, those nog generated on the fly, are better off with the getters and setters written out.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: