Closed radekkozak closed 6 years ago
This looks reasonable, but I need to do couple tests and read the spec carefully
cc @ming13 @dmitry-novikov @nostra13
Great. And the missing doc in kotlin's platform annotations - i noticed that this morning as well - so thanks for filling it in already
v1.6.0 was just released with this change https://github.com/gojuno/koptional/releases/tag/v1.6.0
Thanks for your contribution @radekkozak!
You got it ! And likewise thanks for the lib - like the minimalistic approach to things
Best from Poland for the crew
I propose simple change that i think would be beneficial from the perspective of java consumers, namely annotating
component1()
function with kotlin's@JvmSynthetic
As a consequence method will become invisible from Java. Long story short i think it's rather unneccesary to pollute java with a method that quite frankly doesn't say anything for them as the concept of kotlin's destructuring is simply not there. For getting actual values there is
toNullable
already so i don't see a pointRight now it looks like this: