Re:Lisp and Haskell (2015)
by wk_end on Thursday October 08, 2020 @01:16PM
(#24721362)
Er, the difference here is that we're given the Python code for `getUsers` but not the Haskell code for it. That makes the error in Python obvious. The incorrect `userCount` in Python looks just as obviously correct as the incorrect `userCount` in Haskell; and conversely, if we were given the code for the Haskell `getUsers` (or even just the type signature!) the error would be just as easy to spot.
[ Parent
| on HN ]
There are no comments on this comment yet.