Comment

Comment by premium-concern

> (Option, nullable return value, and throw an exception if not found)

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton