From 1026104d8fb8db751b5941cea45ba97f8fbfabb7 Mon Sep 17 00:00:00 2001 From: piegames Date: Sun, 21 Jul 2024 10:57:43 +0200 Subject: [PATCH] Update rfcs/0148-pipe-operator.md Co-authored-by: Robert Hensing --- rfcs/0148-pipe-operator.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfcs/0148-pipe-operator.md b/rfcs/0148-pipe-operator.md index 6ab8e92b5..20764cb49 100644 --- a/rfcs/0148-pipe-operator.md +++ b/rfcs/0148-pipe-operator.md @@ -248,8 +248,8 @@ having `<|` weaker than `|>` like Haskell's `$` and `&` would be a bad idea. ## Change the `pipe` function signature There are many equivalent ways to declare this function, instead of just using the current design. -For example, one could flip its arguments to allow a partially-applied point-free style (see above). -One could also make this a single-argument function so that it only takes the list as argument. +For example, one could flip its arguments so that it becomes function composition on list of functions. +Not only can this function trivially replace pipe; it can also be readily used where a function is expected, such as in `map`. The current design of `pipe` has the advantage that its asymmetry points at its operating direction, which is quite valuable.