TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Maybe, null and boilerplate code

6 pointsby nuddedover 15 years ago

1 comment

scottdw2over 15 years ago
The jist of the post is that "maybe is superior to null", because maybe does null lifting.<p>That argument, however, is a bit shallow. The first question to ask is, why not just make null behave like Maybe in the first place? That would be the sensible thing.<p>I could buy the argument "aren't monads neat, because they let you do lifting", but that wasn't the main point.<p>Null isn't inferior to maybe. It's just that many languages don't implement the "right" semantics for null(from a ux perspective).