You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion: Whenever some underscore tends to be replaced by an identity function, make the anonymous function escape a single layer.
That will automatically enable cases like that: 1:10 |> filter(_<5, _)
while we don't lose a relevant feature. Using _ instead of identity shouldn't be considered good style anyway.
The text was updated successfully, but these errors were encountered:
Seems related to my suggestion in #1; I agree with the comments on #24990 that using the _ to mean two things in the same expression could be pretty confusing to a reader of the code.
Suggestion: Whenever some underscore tends to be replaced by an identity function, make the anonymous function escape a single layer.
That will automatically enable cases like that:
1:10 |> filter(_<5, _)
while we don't lose a relevant feature. Using _ instead of
identity
shouldn't be considered good style anyway.The text was updated successfully, but these errors were encountered: