-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I really love this proposal and I want it to be implemented but... I believe that the question mark is not a good choice. We already have the existing ternary operator and probably later we'll have the implementation of the 2 proposals optional chaining and nullish coalescing. Obviously, the futur js code will looks like very ugly hieroglyphs.
Why not an asterisk or another special character ?
const add = (x, y) => x + y;
const mul = (x, y) => x * y;
10
|> add(1, *)
|> mul(*, 2)It's just my personal opinion but maybe it's just me.
Too much question marks...
saschanaz, haltcase, flying-sheep, JacopKane, Haroenv and 20 morelazarljubenovic, theres and mikestopcontinues
Metadata
Metadata
Assignees
Labels
No labels