Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on John Hughes Contrasts Erlang and Haskell. Parent comment
data Dyn = I Int | C Char | S [Char] | F (Dyn -> Dyn) | P (Dyn, Dyn)
Now you can do matching "by structure" in Haskell just as easily is you can in Erlang.
There are no comments on this comment yet.
data Dyn = I Int | C Char | S [Char] | F (Dyn -> Dyn) | P (Dyn, Dyn)
Now you can do matching "by structure" in Haskell just as easily is you can in Erlang.