kmruiz
05/08/2016, 7:51 PMzoltu
05/08/2016, 7:51 PMzoltu
05/08/2016, 7:52 PMIEnumerable
has a tiny surface area. It is 2 functions I believe.ribesg
05/08/2016, 7:52 PMzoltu
05/08/2016, 7:52 PMIEnumerable
very easily. It has a very clear single responsibility. Etc.kmruiz
05/08/2016, 7:52 PMzoltu
05/08/2016, 8:09 PMribesg
05/08/2016, 8:09 PMzoltu
05/08/2016, 8:09 PMribesg
05/08/2016, 8:09 PMzoltu
05/08/2016, 8:09 PMorangy
Andreas Sinz
05/08/2016, 8:10 PMPerson.toCSVRow()
. all this extension function does is return a CSV-Row of the Person. headers should be handled somewhere elseorangy
Andreas Sinz
05/08/2016, 8:11 PMzoltu
05/08/2016, 8:11 PMzoltu
05/08/2016, 8:11 PMorangy
zoltu
05/08/2016, 8:12 PMzoltu
05/08/2016, 8:12 PMorangy
orangy
zoltu
05/08/2016, 8:14 PMkmruiz
05/08/2016, 8:15 PMkmruiz
05/08/2016, 8:16 PMkmruiz
05/08/2016, 8:16 PMkmruiz
05/08/2016, 8:17 PMzoltu
05/08/2016, 8:18 PMzoltu
05/08/2016, 8:18 PMorangy
class Foo<T>
fun foo(): Foo<Unit> {}
fun <R> Foo<Unit>.bind(value: R): Foo<R> {}
@JvmName("bind_error")
@Deprecated("Cannot bind already bound Foo.", ReplaceWith(""), DeprecationLevel.ERROR)
fun <T,R> Foo<T>.bind(value: R): Foo<R> = TODO()
fun user() {
val unbound = foo()
val bound = foo().bind("")
val doubleBound = foo().bind("").bind(1)
}