unfortunately functions disguised as constructors ...
# reaktive
s
unfortunately functions disguised as constructors aren’t obvious at all
a
Could you please elaborate? I believe it's an idiomatic way in Kotlin to have function names like constructors. Take
List(size){}
,
Array(size){}
s
Right. From a user’s perspective, I looked at the
Disposable()
interface and didn’t find anything that I can use. I even tried looking for implementations of
Disposable
, but didn’t find anything relevant either. The
Disposable()
function isn’t immediately obvious. Users won’t find this function unless they already know about it.
I may have found the function if it was declared in the same file
a
Thanks for the feedback!
s
In case of
List
and
Array
, they’re very common terms and I’m guessing people type them knowing that the language will have something.
a
I think I will mention this in the Disposable javadocs
As well as all other builder functions
s
That'll help!