Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traits! #14

Open
marcelog opened this issue Dec 19, 2010 · 3 comments
Open

traits! #14

marcelog opened this issue Dec 19, 2010 · 3 comments
Labels

Comments

@marcelog
Copy link
Owner

No description provided.

@jonathaningram
Copy link

As in those you would create with, say, c++? what useful example would we use traits for?

@marcelog
Copy link
Owner Author

yes! ;)

traits are more a feature of the language itself. they are planned in php so that's why i didn't go forward with this yet. i thought they can be implemented by aspects.

traits are good because you can encapsulate functionality (actual real lines of code) and use them across your project to extend it very easily

@jonathaningram
Copy link

Just had a look into php traits and it seems they will come out in php
5.4 which is in some sort of alpha or beta state. Although I'd love to
see a nice use case of traits - say, something in ding that would be
better with traits.

Sent from my iPod

On 15/05/2011, at 9:59 AM, marcelog <[email protected]

wrote:

yes! ;)

traits are more a feature of the language itself. they are planned
in php so that's why i didn't go forward with this yet. i thought
they can be implemented by aspects.

traits are good because you can encapsulate functionality (actual
real lines of code) and use them across your project to extend it
very easily

Reply to this email directly or view it on GitHub:
#14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants