4 ms·
Dynamic typing is merely a mode of use of static typing. All you have to do is add one line of code to your Haskell program: data Dyn = I Int | C Char | S [Cha
by jganetsk 17y ago
Dynamic typing is merely a mode of use of static typing. All you have to do is add one line of code to your Haskell program:
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.