News for hackers. Stuff that matters.
Re:Go Replaces Interface{} with 'Any' by eru on Tuesday December 14, 2021 @11:50PM (#29562237)
That's actually a problem in Erlang.

In Haskell, 'Maybe (Maybe Int)' is a different type from 'Maybe Int'.

That means that when you use eg a hash table that returns some kind null value like 'Nothing' on lookup when a key is not found, you can still stick exactly that kind of null value as a normal value into the table and everything will turn out fine.

There are no comments on this comment yet.