# Allow infix calls for functions with default parameter values

**URL:** <https://discuss.kotlinlang.org/t/allow-infix-calls-for-functions-with-default-parameter-values/219>\
**Category:** Uncategorized\
**Created:** [June 19, 2015, 12:42pm UTC](https://discuss.kotlinlang.org/t/allow-infix-calls-for-functions-with-default-parameter-values/219 "2015-06-19T12:42:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mplatvoet](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/mplatvoet/32/7121_2.png) [@mplatvoet](https://discuss.kotlinlang.org/u/mplatvoet)\
**Post date:** [June 19, 2015, 12:42pm UTC](https://discuss.kotlinlang.org/t/allow-infix-calls-for-functions-with-default-parameter-values/219/1 "2015-06-19T12:42:22Z")

</div>

With Kotlin M12 it's not possible to use function as an infix call when it has default parameters, e.g.:

```kotlin
fun main(args: Array<String>) {
    3.increment {println(it)} // works
    3 increment {println(it)} // doesn't compile
}

fun Int.increment(value :Int = 1, result: (Int) -> Unit) = result(this + value)
```

I would like to see that infix calls with default paramters is possible because it simply saves me an overload if I want to support both. Though I don’t know if this leads to technicall impossiblities or whether it’s considered undesireable in any other way.

So what I would like to know what your stance on this is?

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [June 23, 2015, 10:43am UTC](https://discuss.kotlinlang.org/t/allow-infix-calls-for-functions-with-default-parameter-values/219/2 "2015-06-23T10:43:30Z")

</div>

We could support it at some point, I think, but no clear plan on this yet.

---

<div class="post-metadata">

**Author:** ![mplatvoet](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/mplatvoet/32/7121_2.png) [@mplatvoet](https://discuss.kotlinlang.org/u/mplatvoet)\
**Post date:** [July 2, 2015, 7:49pm UTC](https://discuss.kotlinlang.org/t/allow-infix-calls-for-functions-with-default-parameter-values/219/3 "2015-07-02T19:49:20Z")

</div>

forgot to say thanks, so: thanks!
