tl;dr JavaScript is rolling out some pretty cool new language features in the next couple months, including: Optional Chaining Nullish Coalescing Pipeline Operator To be honest, I'm most excited...
tl;dr JavaScript is rolling out some pretty cool new language features in the next couple months, including:
Optional Chaining
Nullish Coalescing
Pipeline Operator
To be honest, I'm most excited for the pipeline operator - having real composition without callback hell is going to be a dream come true.
Totally! I really like that the language is starting borrowing from languages like C# and elixir - not too much hand holding, but enough sugar to let developers thrive.
Totally! I really like that the language is starting borrowing from languages like C# and elixir - not too much hand holding, but enough sugar to let developers thrive.
Having written a bit of Elixir, a pipeline operator is great. I wish more languages (Python in particular) would include it. But it's not too hard to implement a pipeline helper yourself.
Having written a bit of Elixir, a pipeline operator is great. I wish more languages (Python in particular) would include it. But it's not too hard to implement a pipeline helper yourself.
My answer to this kinda syntax is usually just to make a snippet for it in vscode (though I'm sure you can use the same tactic for any other editor). I'm imagining something like |*x as a trigger,...
My answer to this kinda syntax is usually just to make a snippet for it in vscode (though I'm sure you can use the same tactic for any other editor).
I'm imagining something like |*x as a trigger, with x corresponding with the number of steps you'd like to take. Then you can just tab through at your leisure!
tl;dr JavaScript is rolling out some pretty cool new language features in the next couple months, including:
To be honest, I'm most excited for the pipeline operator - having real composition without callback hell is going to be a dream come true.
Totally! I really like that the language is starting borrowing from languages like C# and elixir - not too much hand holding, but enough sugar to let developers thrive.
Having written a bit of Elixir, a pipeline operator is great. I wish more languages (Python in particular) would include it. But it's not too hard to implement a pipeline helper yourself.
I find the pipeline to be ugly and hard to type. I agree that it'll be valuable, but ugh, that syntax.
My answer to this kinda syntax is usually just to make a snippet for it in vscode (though I'm sure you can use the same tactic for any other editor).
I'm imagining something like |*x as a trigger, with x corresponding with the number of steps you'd like to take. Then you can just tab through at your leisure!
View all the proposals here: https://github.com/tc39/proposals