Content deleted Content added
Tags: Mobile edit Mobile web edit |
LittleWink (talk | contribs) m Disambiguating links to Python (link changed to Python (programming language)) using DisamAssist. |
||
Line 8:
==Support in programming languages==
Extension methods are features of numerous languages including [[C Sharp (programming language)|C#]], [[Gosu (programming language)|Gosu]], [[Javascript]], [[Oxygene (programming language)|Oxygene]], [[Ruby (programming language)|Ruby]], [[Smalltalk]], [[Kotlin (programming language)|Kotlin]] and [[VB.NET|Visual Basic.NET]]. In dynamic languages like [[Python (programming language)|Python]], the concept of an extension method is unnecessary because classes can be extended without any special syntax (an approach known as "monkey-patching", employed in libraries such as [[gevent]]).
In VB.NET and Oxygene, they are recognized by the presence of the "<code>extension</code>" keyword or attribute.
|