It would be nice to support both classic Kotlin st...
# language-proposals
h
It would be nice to support both classic Kotlin style lambdas for most regular usages
Copy code
function() { args ->
    // Blah
}
and (optional) Java style lambdas for currying as presented below
Copy code
function(curried -> args -> {
    // Blah
})
Because in Kotlin's syntax, curried lambdas are really ugly
Copy code
function() { curried ->
    { args ->
        // Blah
    }
}
Alternatively I think this is acceptable too, if we don't want to sacrifice too much Kotlin's syntax uniformity
Copy code
function() { curried -> args ->
    // Blah
}
😕 1
n
For currying, I usually use
fun
rather than lambdas: function(fun(foo:Int)=fun(bar: String)= … blah …)
h
intresting approach, but I still think it's a bit verbose to be perfect