3 ms·
I am no Haskell expert, so I might be wrong on this, but is that code right ? I would imagine the fourth line should read isIfOfInterest (CIf cond _ _ _) =
by dkhenry 14y ago
I am no Haskell expert, so I might be wrong on this, but is that code right ? I would imagine the fourth line should read
isIfOfInterest (CIf cond _ _ _) = not (null (listify isFooIdent cond))
not
isIfOfInterest (CIf cond _ _ _) = not (null (listify fooIdent cond))
- pestaa 14y agoYou are correct. The nice thing is that this mistake would have been caught compile-time.
- lolcraft 14y agoYou mean, "identifier not found"... ?
- pestaa 14y agoExactly. Ever tried running PHP, Ruby or Python code with an undefined variable somewhere? It works flawlessly... for a minute... an hour... or a month... and then it suddenly hits you out of the blue.
- nandemo 14y agoThe bad thing is that people still write blog posts containing uncompiled code.