2 ms·
I do both in Haskell. Sometimes I write the types first and sometimes I write the function first. Usually, the functions with more imperative flavour get thei
by eru 6y ago
I do both in Haskell. Sometimes I write the types first and sometimes I write the function first.
Usually, the functions with more imperative flavour get their implementation first, and the more functionally flavoured bits get their type first. But that's not always the case.
Sometimes I even write the QuickCheck properties first.