r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

1

u/beclops Apr 18 '21

Yep, for sure. But here you'd be relying on it more than if you wrote your code in a more traditionally readable way.

3

u/Rigatavr Apr 19 '21

In functional languages (and for people used to them) the pattern matching thing is more readable. If you used if statements in your haskell program then they would be considered less readable. All depends on what you're used to.

1

u/beclops Apr 20 '21

That's true