Skip to content
loading...

re: Breaking Encapsulation with traits in PHP VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I don't agree with this. It's too easy for people to use traits unsafely. Sure everyone on your team might know to do that, but when a new person ...

So basically you're saying don't use traits? That's certainly one position to have. I think they can be useful in certain situations, so eschewing them entirely is maybe throwing out the baby with the bathwater. But I agree that you need to know why they can be bad if you do use them.

code of conduct - report abuse