proposal-pipeline-operator
proposal-pipeline-operator copied to clipboard
A proposal for adding a useful pipe operator to JavaScript.
Based on the description in README.md, it seems that the pipeline operator is intended to be left-associative: `a |> b |> c` is equivalent to `(a |> b) |> c`....
Since `%` is the modulus operator I think it we be better to use a different symbol, perhaps `@` ```js let even = 8 |> @ % 2 === 0;...
Let's start with the standard F# pipeline as implemented by Babel: ```js const a = x |> f(?, 1) |> g |> h ``` This gives you `a` where `x`,...
I recently had a brainstorm for a TC39 proposal, and if it's not too much trouble I'd like to know if the Pipeline champions think, as I do, that it...
The Record & Tuple proposal have used a playground page to make their proposal playable in the browser. As I understand things, their playground transpiles users' script to currently supported...
Adding to my previous real-world examples in #314 for constructors and factory methods, here's another pattern that I'm seeing a lot in our company's code: use of ternaries to handle...
> more empiric evidence for pipe’s impact would be good. (from https://github.com/tc39/proposal-pipeline-operator/issues/232#issuecomment-2784879225) Thanks so much for persevering with this proposal. Here's 8 snippets (I could probably provide hundreds more) from...
Unrelated @tabatkins promised to get on with it back in August 2024 - https://github.com/tc39/proposal-pipeline-operator/issues/306 Well, it's April 2025 already, and I'm churning a lot of typescript nowadays, littered with A(B(C(D(E(param)))))....
This is a spinoff of https://github.com/tc39/proposal-pipeline-operator/issues/311#issuecomment-2788293430 and #159. * In many contexts, such as query building, pipes oftentimes may need to do repetitive computations or queries. These contexts include: *...
In “ Implementation of a modular schema library in TypeScript with focus on bundle size and performance” (2003; see https://valibot.dev/thesis.pdf), Fabian Hiller presented valibot as an alternative to preexisting validation...