Open expede opened 2 years ago
To clarify, Credo specifically warns on cases where apply/2
is used with a list of known size. Credo argues that if you can know the number of arguments at compile time, then you should just call the function directly, with apply/2
being reserved for more dynamic uses.
I agree that finding a way to avoid this warning would be worthwhile though!
Credo now warns by default on use of
Apply.apply
, and piping into anonymous functions. We should consider making these not conflict out of the box.See https://github.com/witchcrafters/witchcraft/pull/102#discussion_r790418438