[Haskell-cafe] Ensuring all values of an ADT are explicitly handled OR finding all occurrences of type X in my app
Erik de Castro Lopo
mle+hs at mega-nerd.com
Tue Jan 31 07:34:04 UTC 2017
Branimir Maksimovic wrote:
> Actually in team, one who writes `_` match, is very useful as that
> prevents breaking code when adding new value...
I write Haskell code in a team of 15 engineers and wild card pattern
matches are considered a bad idea exactly *because* we want compiler
errors when a sum type is extended with a new constructor.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Haskell-Cafe
mailing list