Viral Thakker
09/14/2018, 9:54 AMnickk
09/14/2018, 3:09 PMlist.sortedBy { it.description }
sorts the items in an accent-sensitive way.
Is there a way to request accent-insensitive sorting?Shawn
09/14/2018, 5:47 PMkotlin.math
const issue has been resolved for 1.2.71jw
09/14/2018, 5:53 PMgroostav
09/14/2018, 6:56 PM@CompilerFailure("my custom message")
tipsy
09/14/2018, 7:40 PMDouble.javaClass // DoubleCompanionObject ?
Double::class.java // java Double ?
Double // kotlin Double ?
and when to use which?Ramin
09/14/2018, 8:02 PMNikky
09/15/2018, 7:43 AMVíctor Herraiz
09/15/2018, 10:34 AMtypealias
? I could be great for constrains and dtosCasey Kulm
09/15/2018, 6:15 PMresources
package in my kotlin test package. I have yet to find a resource that can plainly tell me how directories map to what I’m passing in, and debugging classLoaders is impossible. It seems to either work or not work.Kotlin
09/15/2018, 8:00 PMSomeCat
09/17/2018, 6:30 AMSlackbot
09/17/2018, 9:03 AMDico
09/17/2018, 11:18 AMfilter
operation non-lazily creates an intermediate collection and then the map
operation takes it and creates another.Paul Woitaschek
09/17/2018, 11:26 AM1134736115
975774980
on my machinePaul Woitaschek
09/17/2018, 2:00 PMribesg
09/17/2018, 2:39 PMamrelmasry
09/17/2018, 11:06 PMHamza
09/18/2018, 3:44 AMMohamed Ebrahim
09/18/2018, 4:58 AMConvince
The Client?jacob
09/18/2018, 5:16 AMribesg
09/18/2018, 10:09 AMveiset
09/18/2018, 10:20 AMname
field of an enum. Any ideas how to do that? We are using a validation framework that is pretty strict and wont accept ENUM_NAME
(underscore) from frontend, so I need to annotate the name
-field of an enum to loosen up the validation.James
09/18/2018, 10:26 AMpublic interface Identifiable<T> {
T getId();
}
I've tried the following...
class Product(override val id: String): Identifiable<String>
But i get an error id overrides nothing
Then I tried:
class Product(val id: String): Identifiable<String> {
fun getId(): String = id
}
But, of course, you get a JVM conflict The following declarations have the same JVM signature 'public final <get-id>(): String' and 'public open getId(): String'
I found that making id
private works but that's less than ideal:
class Product(private val id: String): Identifiable<String> {
fun getId(): String = id
}
pp.amorim
09/18/2018, 10:58 AMkarelpeeters
09/18/2018, 1:19 PMchristophsturm
09/18/2018, 2:33 PMpablisco
09/18/2018, 2:54 PMnullables
and the `?/
!!/
?:` operators? i.e Is it safe to consider these as merely interoperability features? Specially given that there are safer ways to define default cases (with sealed classes
for example)gabrielfv
09/18/2018, 3:04 PMproperty
is not null safe, the second would break. Also, I don't recall there having a map
for non-collection types.Nikky
09/18/2018, 3:06 PMfun <T: Any> T?.or(fallback: T) = this ?: fallback
no idea if this would even compileNikky
09/18/2018, 3:06 PMfun <T: Any> T?.or(fallback: T) = this ?: fallback
no idea if this would even compilegabrielfv
09/18/2018, 3:10 PM