Content deleted Content added
→Avoiding drawbacks: Add python option |
|||
Line 290:
* [[Kotlin (programming language)|Kotlin]] includes the delegation pattern in the language syntax.<ref>{{cite web | url=https://kotlinlang.org/docs/reference/delegated-properties.html | title=Delegated Properties | website=Kotlin Reference | publisher=JetBrains | access-date=2018-07-11}}</ref>
* [[PHP]] supports [[Traits (computer science)|traits]].
* [[Python (programming language)|Python]] supports use of the [https://stackoverflow.com/a/69444626/15354395 __getattr__ magic method to forward] attribute requests.<ref>{{Cite web |title=Best way to forward/redirect methods/attributes in python class without redundant code/docstrings? |url=https://stackoverflow.com/questions/69444593/best-way-to-forward-redirect-methods-attributes-in-python-class-without-redundan |access-date=2022-04-26 |website=Stack Overflow |language=en}}</ref>
* [[Raku (programming language)|Raku]] provides a {{code|handles}} keyword to facilitate method forwarding.
* [[Rust (programming language)|Rust]] provides traits with default implementations.
|