Re:C++ Pattern Matching Proposal [pdf]
by opus132 on Friday January 03, 2020 @12:56PM
(#21948428)
You mean a piecewise definition of a function? I don't think this is unidiomatic or discouraged in Haskell at all.
[ Parent
| on HN ]
There's some indirect discussion here that seems to contradict that, but I certainly could be wrong.
Re:C++ Pattern Matching Proposal [pdf]
by Iceland_jack on Friday January 03, 2020 @01:21PM
(#21948714)
That's in the context of Elm, Evan gives his reasons but in the context of Haskell such multi-line equations are very common and normal Haskell style.