# Proposal to add Extension Methods to the language

**URL:** <https://contributors.scala-lang.org/t/proposal-to-add-extension-methods-to-the-language/2945>\
**Category:** Scala Improvement Process\
**Created:** [March 18, 2019, 2:00pm UTC](https://contributors.scala-lang.org/t/proposal-to-add-extension-methods-to-the-language/2945 "2019-03-18T14:00:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![szeiger](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/szeiger/32/238_2.png) [@szeiger](https://contributors.scala-lang.org/u/szeiger)\
**Post date:** [March 18, 2019, 6:12pm UTC](https://contributors.scala-lang.org/t/proposal-to-add-extension-methods-to-the-language/2945/5 "2019-03-18T18:12:15Z")

</div>

> [@Ichoran](#):
>
> I think this syntax is the the way to go: write the definition in the same order as the usage.

Unless you’re calling a right-associative operator as a normal method. Currently the order of operands in a method definition matches that of a method call but with this new syntax for extension methods it matches the order in an operator application. This makes extension method definitions different from regular methods:

```scala
class C {
  // Normal method definition, argument list on the right (method style)
  def :: (x: Elem): C = ...
}

// Extension method definition, argument list on the left (operator style)
def (x: Elem) :: (xs: C): C - ...

```

---

_[View the full topic](https://contributors.scala-lang.org/t/proposal-to-add-extension-methods-to-the-language/2945)._
