|
|
|
|
|
by jankotek
3423 days ago
|
|
And because it is implemented poorly, it adds complexity. Even Scala, which had Option from start, has three ways to return value from Map (Option, nullable return value, and throw an exception if not found). Kotlin has only single way. |
|
Which Map are you talking about? I don't see the method that returns nulls for missing values.
> Kotlin has only single way.
... with the nice side-effect of being unable to tell whether the key didn't exist or if it was null. That's the single worst approach one can take.