jstuyts-squins
09/29/2017, 9:19 AMprojID
is not given, show this decision in the code clearlynerses
09/29/2017, 10:08 AMsksk
09/29/2017, 10:17 AMrwachol
09/29/2017, 10:28 AMorafaaraujo
09/29/2017, 1:19 PMkarelpeeters
09/29/2017, 1:21 PMmike_shysh
09/29/2017, 2:57 PMroman.belov
09/29/2017, 4:17 PMroman.belov
09/29/2017, 4:19 PMtrevjones
09/29/2017, 10:51 PMdata class Foo(val foo: Int) {
data class Bar(val bar: Int)
}
jaguililla
09/30/2017, 11:32 AMkarelpeeters
09/30/2017, 7:01 PMinline fun foo<reified T>(constr: () -> T) { ... }
. You might not even need the reified
anymore.Dalinar
10/01/2017, 10:01 AMhenrik
10/01/2017, 7:44 PMraulraja
10/01/2017, 11:30 PMgradle
task that will launch in the console the kotlinc
REPL with the project classpath ready?Paul Woitaschek
10/02/2017, 7:12 AMenleur
10/02/2017, 7:18 AMval (even, odd) = listOf(1.2, 2.0, 4.1, 6.0)
.partition { it.isEven() }
karelpeeters
10/02/2017, 9:02 AMpokkeli
10/02/2017, 2:54 PMzealous
10/02/2017, 8:43 PMnulldev
10/02/2017, 9:02 PMdata class WTF(var name: String
set(value) {
println("This doesn't work 😞")
}
)
Olekss
10/03/2017, 7:59 AMgeekasm
10/03/2017, 9:54 AMarekolek
10/03/2017, 10:06 AMOlekss
10/03/2017, 10:38 AMmarstran
10/03/2017, 10:54 AMfun <T1: Closeable?, T2: Closeable?, R> Pair<T1, T2>.use(block: (T1, T2) -> R): R =
first.use { a -> second.use { b -> block(a, b) } }
You could then do (Buffer() to Okio.source(file)).use { buffer, source -> ... }
.Czar
10/03/2017, 12:10 PMuse
execution both first and second will be closed, so the object becomes unusable. I'm sorry for so many uses of the word 'use', but here I kinda have to 😄dave08
10/03/2017, 12:18 PMoperator iterator()
that returns a custom iterator that implements operator hasNext()
and operator next()
, to return a List? It seems that currently the only way is to make a mutable list and then for (e in iterator) list.add(e)
...?dave08
10/03/2017, 12:48 PMrocketraman
10/03/2017, 3:16 PMpassword = "something"
) in an apply
for SQLServerDataSource
which has a setPassword
method: Cannot access 'password': it is public/*package*/ for synthetic extension in '<dependencies of my-module>'
. Calling setPassword
explicitly works correctly (Kotlin 1.1.51).