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
We have Behavior#map but also filterApply, when, etc that are prefix. Uniformity is the biggest issue, but I prefer the infix notation, and would prefer it everywhere where possible.
The text was updated successfully, but these errors were encountered:
Non-"core" operators are only available as function.
But I agree that it can be confusing. To make it less confusing the (future) documentation could make it very clear which operations are core and which are not. But still, it is not idea.
The reason for not making everything methods is that functions can be tree-shaken whereas methods can't be tree-shaken which will lead to bigger bundles.
In the List library I took an approach where methods can optionally be imported with `import "list/methods". This makes methods (and the increase in bundle size) opt-in. That is also an option.
We have Behavior#map but also
filterApply
,when
, etc that are prefix. Uniformity is the biggest issue, but I prefer the infix notation, and would prefer it everywhere where possible.The text was updated successfully, but these errors were encountered: