Ruckus
10/29/2018, 7:06 PMBarend
10/29/2018, 8:27 PMkotlin.random.Random
... what's up with that?enleur
10/29/2018, 9:00 PMnhaarman
10/29/2018, 9:12 PM-XXLanguage:+NewInference
results in things breaking due to overload resolution ambiguity, I'm curious what the options are to mitigate this?Hamza
10/30/2018, 12:58 AMmattinger
10/30/2018, 1:00 AMmattinger
10/30/2018, 1:17 AM60.seconds.inMinutes
just because there's no overhead of class creation. Thoughts?Kulwinder Singh
10/30/2018, 4:18 AMNikky
10/30/2018, 4:31 AMSuraj
10/30/2018, 6:20 AMinternal
modifier and found that visibility is restricted to a module. And definition of module in context of gradle as per doc is :
a Gradle source set (with the exception that the test source set can access the internal declarations of main);
a)What does gradle source set
mean? Does it mean a gradle module(talking in terms of an android project) or some subset of it?
b)Do we have any advantages of using internal in a multi module project? like reduces incremental build time or so?svenjacobs
10/30/2018, 6:40 AMadibfara
10/30/2018, 7:36 AMAnimal
class that has abstract fun run()
and you have class Dog : Anima() { //implements run }
and you have an instance of dog and usage of run()
somewhere
kotlin
val dog = Dog()
dog.run()
how do you navigate to run
implementation in Dog?Saiedmomen
10/30/2018, 8:05 AMThomas Legrand
10/30/2018, 8:34 AMStefan Mitev
10/30/2018, 9:49 AMkarelpeeters
10/30/2018, 11:25 AMOnur
10/30/2018, 12:20 PMEgor Trutenko
10/30/2018, 1:34 PMapply
or let
) which return Unit
? Something like fun <T> T.end(block: T.() -> Unit): Unit
Edgars
10/30/2018, 2:47 PMafernan
10/30/2018, 3:15 PMwhen(A) A@ {...
Paul Woitaschek
10/30/2018, 3:29 PMuser
10/30/2018, 4:34 PMDias
10/30/2018, 7:51 PMTravis Griggs
10/30/2018, 8:53 PMkarelpeeters
10/30/2018, 10:07 PMsp
10/31/2018, 12:02 AMsp
10/31/2018, 12:03 AMMark
10/31/2018, 4:43 AMvar x = ...
when (x) is X ->
// cannot use x as X unless use x as X
Is there any other way apart from make val x
?muralimohan962
10/31/2018, 6:25 AMclass SomeClass {
private InnerClass innerClass = new InnerClass();
void foo() {
String name = innerClass.name;
}
private static class InnerClass {
private String name = "Murali";
}
}
When i convert this code into kotlin using kotlin converter in IDEA i got an error at innerClass.name showing the name is private. But that works fine in Java. Please show me how to achieve the same in kotlin!ibash
10/31/2018, 6:30 AMfun foo() = runBlocking {
// some method that takes a block
someOtherMethod {
// want to access surrounding scope here
async { ... }
}
}