dimanche 15 mars 2020

Can PHP Trait be used in any of valid GoF pattern implementation?

I'm currently studying the original book, Design Patterns: Elements of Reusable Object-Oriented Software and tried to create an "useful" example to all 23 patterns from the four guys.

As this book was written in 1994, so the examples were made basically in major part using C++ decades before things like Type Traits, something like Java default methods or PHP Traits

So, I would like to know if, on PHP implementations, any of 23 GoF Design Patterns would have some kind of benefit using Trait?

Aucun commentaire:

Enregistrer un commentaire