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.

Advent of Haskell

5 pointsby YuukiReyover 6 years ago

1 comment

dllthomasover 6 years ago
&gt; Just remember to always add the required catch-all cases, lest you write a partial function.<p>When just unpacking lists, or other types whose structure absolutely will not change, this is fine.<p>When pattern matching on alternatives that might be added to, I find if I&#x27;m inspecting the values of existing cases I will probably want to also give consideration to how to handle future cases, so I avoid a catch-all (and make sure my tooling calls out inexhaustive matches) so these spots are surfaced when the type changes.