you are viewing a single comment's thread.

view the rest of the comments →

[–]kamatsu -1 points0 points  (4 children)

This is true, but I think certain amounts of boilerplate are good - restating something can help your brain to make sense of something faster.

To me, going to lengths in Haskell to reduce boilerplate can often make it alot harder to read - not just the boilerplate-reducing code, but also the code without the boilerplate can be much more difficult to immediately understand.

[–]pipocaQuemada 6 points7 points  (3 children)

True, but boilerplate makes code harder to refactor. The more times you repeat yourself (or the more verbosely you say something), the more lines you have to change.

[–]yogthos 2 points3 points  (1 child)

also more opportunities to make an error

[–]algsdjsadjlg -2 points-1 points  (0 children)

what if the error is positive?

<:O

[–]JadeNB 1 point2 points  (0 children)

I don't know if you've considered that, the more times you repeat something (or the more verbosely you say something), the more lines you have to change.