4 ms·
I think the post is related tothe "Null vs Maybe" problem. See https://web.archive.org/web/20230329075114/https://www.nickknowlson.com/blog/2013/04/16/why-maybe
by fbn79 3y ago
I think the post is related tothe "Null vs Maybe" problem. See https://web.archive.org/web/20230329075114/https://www.nickknowlson.com/blog/2013/04/16/why-maybe-is-better-than-null/ https://web.archive.org/web/20230329075114/https://www.nickk... already discussed here https://news.ycombinator.com/item?id=5577364 https://news.ycombinator.com/item?id=5577364
- cowsandmilk 3y agoExcept it isn’t. Returning ‘User | null’ in typescript is the same type-wise as returning Maybe<User>