3 ms·
I don't understand what's wrong with get() method. Swift has built-in null-safety and it has "!" operator. Kotlin has it. Even Haskell has fromJust function whi
by vbezhenar 11y ago
I don't understand what's wrong with get() method. Swift has built-in null-safety and it has "!" operator. Kotlin has it. Even Haskell has fromJust function which does exactly the same.
May be name "get()" is too short and innocent-looking.
- danieldk 11y agoPartial functions such as fromJust are generally frowned upon in the Haskell community. There was a relatively recent proposal to deprecate and then remove fromJust: https://mail.haskell.org/pipermail/libraries/2015-February/025010.html https://mail.haskell.org/pipermail/libraries/2015-February/0...
- aljones 11y agoThe equivalents are not celebrated in other languages.