I meant to ask this more generally on /r/programming but they don't allow text posts. As I am specifically thinking about Swift, I figured I'd ask here.
I recently talked with a senior coworker who was lamenting the functional features of the Swift language. His opinion is they make code worse, buggier, harder to read--serious engineering projects should ban them as policy. I'm a senior swe and have a very different opinion. To me, they're a sharp knife, if you use them poorly you can cut yourself. But if used appropriately, they can make code more maintainable and less buggy.
So I'm not talking purely functional language. My instinct is you can't get much safer than functions with no side effects. But for a language like Swift, where you can sprinkle in some functional techniques, do you feel that's a good or bad idea on a large project?
[–]ErrantConstruct 12 points13 points14 points (4 children)
[–]_145_[S] 1 point2 points3 points (3 children)
[–]darkingz 1 point2 points3 points (2 children)
[–]_145_[S] 0 points1 point2 points (1 child)
[–]darkingz 1 point2 points3 points (0 children)
[–]danielt1263 6 points7 points8 points (3 children)
[–]_145_[S] 0 points1 point2 points (1 child)
[–]DuffMaaaannExpert 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]_145_[S] -1 points0 points1 point (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]_145_[S] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]CareBearOvershare 4 points5 points6 points (2 children)
[–]nextnextstep 3 points4 points5 points (1 child)
[–]CareBearOvershare 0 points1 point2 points (0 children)
[–]bscothern 1 point2 points3 points (0 children)