Peter Ertl
05/18/2021, 10:08 AMthanksforallthefish
05/18/2021, 12:44 PMJose A.
05/18/2021, 4:52 PM@OptIn(ExperimentalContracts::class)
private fun OriginQueryNode.isSimpleQuery(): Boolean {
contract {
returns(true) implies (this@isSimpleQuery is OriginQueryNode.FilterAttributes)
}
return this is OriginQueryNode.FilterAttributes && ...
}
private fun calculateMembersLocallyIfPossible(originQuery: OriginQueryNode): MemberGaussCollection? =
if (originQuery.isSimpleQuery()) {
println(originQuery.fieldOnlyFilterAttributes)
}
In the `calculateMembersLocallyIfPossible`fun I try to access the field `fieldOnlyFilterAttributes`after checking isSimpleQuery
is true. The contract should let me access the field but it's not working (marks fieldOnlyFilterAttributes
as not existent.user
05/18/2021, 4:56 PMspierce7
05/18/2021, 8:30 PM2.seconds
to Duration.seconds(2)
? One is significantly less convenient to use.zain
05/19/2021, 8:27 AMthis
within a lambda expression
val sectionChildAdapter = SectionChildAdapter {
callBackListener.invoke(it)
this.notify(l)
}
Jason5lee
05/19/2021, 10:15 AMval unfold:
generator: 'State -> option<'T * 'State> ->
state : 'State
-> seq<'T>
Jiri Bruchanov
05/19/2021, 3:12 PMuser
05/19/2021, 4:54 PMMike Vitale
05/19/2021, 9:11 PMobject
that declares many `const val`’s in my Kotlin code, is it possible to star-import all of them into a class that uses them?Erik
05/19/2021, 10:18 PMtrue
false
on v1.4.30, but on v1.5.0 it prints
true
true
Why? What part of the v1.5.0 release changed this behaviour?ursus
05/20/2021, 12:51 AMeygraber
05/20/2021, 4:34 AMŁukasz Bednarczyk
05/20/2021, 7:03 AMNicole
05/20/2021, 10:47 AMiterator { produceValue() }
where produceValue is called each time the consumer calls next()
Gopal S Akshintala
05/20/2021, 1:25 PMorg.jetbrains.annotations.NotNull
doesn’t work on Generic param types 😞
fun someFun(list: List<@NotNull String>)
ahmad abas
05/20/2021, 2:50 PMahmad abas
05/20/2021, 2:51 PMDenys
05/20/2021, 5:52 PMcuongtd
05/21/2021, 4:27 AMdead.fish
05/21/2021, 9:48 AMsrc/{main,test}/resources
) with KDoc? In case things get moved / renamed, so that documentation entries will reflect this change automatically?Tudor Luca
05/21/2021, 11:27 AMdata class MyObject(val value: Int)
and 10 objects in memory I want to generate a data.kt
file like :
val obj1 = MyObject(value = 1)
val obj2 = MyObject(value = 12)
val obj3 = MyObject(value = 3)
etc
Context:
Jetpack Compose Previews cannot access the file system, so you'd need test data as Kotlin source code, you cannot use a JSON file and parse it, as you would do in a normal junit test. This would be useful as a JVM CLI companion tool when you want complex test data based on a server response that would be tedious to type by hand.solidogen
05/21/2021, 12:51 PMNikola Milovic
05/21/2021, 12:55 PMIf you need to write iOS-specific code and run an iOS application
, so on a Linux machine I can only write android specific code? My idea is to have domain/data layers be shared and only separate UI for IOS/ Android. Android with Jetpack compose and IOS probably swiftUI (which would require XCode). From my understanding so far, I need to develop on MacOS if I want to both target IOS and Android at the same time? Can someone help clarify this situationGopal S Akshintala
05/22/2021, 7:52 AM1.5.30-dev-1046
) ?
maven("<https://dl.bintray.com/kotlin/kotlin-eap>") or maven("<https://dl.bintray.com/kotlin/kotlin-dev>")
doesn’t seem to be working anymoreCLOVIS
05/22/2021, 4:24 PMspierce7
05/23/2021, 12:14 AMSlackbot
05/24/2021, 6:34 AMuser
05/24/2021, 2:30 PMuser
05/24/2021, 3:50 PMuser
05/24/2021, 3:50 PMlouiscad
05/24/2021, 5:03 PM