I've actually gotten to the point where I think for comprehensions are a code smell. The only time I prefer the for syntax is when I have a large list of monad chains.
Large lists of monad chains almost always indicate some sort of poor factoring of the code.
Comments
I've actually gotten to the point where I think for comprehensions are a code smell. The only time I prefer the for syntax is when I have a large list of monad chains.
Large lists of monad chains almost always indicate some sort of poor factoring of the code.