|
|
|
|
|
by SomeCallMeTim
3372 days ago
|
|
The hoops you have to jump through in a pure FP approach can make the problem 100x harder, though. Some problems are just more inherently imperative and stateful. I use FP code when it makes sense, and I use imperative code when it makes sense. There Is No Silver Bullet. |
|
To me it doesn't really look like jumping through hoops, but we're up front about the mutation so no-one's ever going to get a surprise.
There's no silver bullet, sure. But I don't think pure FP is really all that complex. It's mostly just different.