3 ms·
With Kotlin based approach to nulls you can't represent Option<Option<T>> values.
by pkolaczk 5y ago
With Kotlin based approach to nulls you can't represent Option<Option<T>> values.
- brabel 5y agoAnd that's a good thing, no? I've never met a good use cases for double-wrapping values like this.
- Zababa 5y agoI'm not an expert on Kotlin but this reminds me of JS promises. The issue was that by not supporting Promise<Promise<T>>, promises were not monadic. It look like the same issue in Kotlin.
- nemetroid 5y agoI thought this was a good example: https://news.ycombinator.com/item?id=28746293 https://news.ycombinator.com/item?id=28746293