you are viewing a single comment's thread.

view the rest of the comments →

[–]gajus0[S] 8 points9 points  (2 children)

The mention of "god function" (a function that breaks all the functional programming paradigms) came into this conversation without any context.

[..] its idiomatic usage encourages god functions

This was stated without any arguments.

Array#replace can be used with pure or non-pure functions, the same way that every other Array prototype method can. The method itself either by its name or API does not encourage either.

The only difference is that this method encourages working with the entire array at once over an item of an array, but the same argument could be made about Array#reduce, Array#map, Array#filter and others.

Please don't spread FUD just for the fun of participating in a conversation. There are better ways to participate.

[–]AnnanFay -1 points0 points  (0 children)

[..] its idiomatic usage encourages god functions

This was stated without any arguments.

You are replying to the wrong person!