myanmarking
06/15/2021, 10:48 AMTijl
06/15/2021, 11:01 AMWell, the official recommendation would say no.Where do you get this from? The official explanation is here @diego-gomez-olvera: https://github.com/Kotlin/kotlinx.coroutines/blob/32336be8fa90818cff9f2ba3c36b3f7c89e079c4/docs/topics/compatibility.md#experimental-api It gives some pointers of what to look out for, especially if you are creating a library. it does not recommend against using it anywhere that I can see. In fact, it promises that if the API is decided to be removed, it will go through a normal deprecation cycle rather than just disappearing.
@FlowPreview
? but even there the wording is not that strictmyanmarking
06/15/2021, 11:04 AMTijl
06/15/2021, 11:27 AMAPI is marked experimental when its design has potential open questions which may eventually lead to either semantics changes of the API or its deprecation.it does not mean the implementation itself is substandard. Of course, any new feature in software project brings stability risks, whether it’s marked experimental or not. All that said, for something like a simple operator I see absolutely no reason not to use them. Even if you would heavily rely on some edge case behaviour that would change, it’s extremely easy to copy the code for the operator as temporary measure. In the end you should apply your own common sense.
myanmarking
06/15/2021, 12:57 PMephemient
06/15/2021, 4:09 PMTijl
06/15/2021, 7:12 PMmyanmarking
06/16/2021, 10:05 AMTijl
06/16/2021, 10:29 AM@ExperimentalCoroutinesApi
does not recommend against production usage. It only states it may be dangerous if:
• You are writing a library which depends on kotlinx.coroutines
and want to use experimental coroutines API in a stable library API.
• You want to build core infrastructure of the application around experimental API.
Note that it still does not give a blanket recommendation not to use it in production, and it seems to me it has little to do with a simple use of mapLatest
I am not making any of this stuff up, you can read it yourself in the link I gave you. I have no ideas where your stance that Jetbrains would refuse to endorse its usage for production come from (you know, despite putting it in one of their most popular libraries), but it seems to me this is entirely theoretical and irrelevant.myanmarking
06/16/2021, 10:44 AMTijl
06/16/2021, 11:51 AMmyanmarking
06/16/2021, 11:58 AMTijl
06/16/2021, 12:17 PMephemient
06/16/2021, 1:12 PMmyanmarking
06/16/2021, 1:22 PMTijl
06/16/2021, 1:24 PM