DEV Community

Discussion on: Functional Programming: Composition of Functions

Collapse
 
biomathcode profile image
Pratik sharma

Thanks to both of you! I was not aware of this new experimental pipeline operator. I like the syntax that peter has used. as per the current mozilla docs it is still in stage 1, so i don't think we can use the operator just for now. Operators have made our life easier a bit, so much time i use ? : , then using if else. I think we are moving to more simplified and less bracket world of programming.

Thread Thread
 
pengeszikra profile image
Peter Vivo

If you would try pipeline operator, then you found in this parcel bunlder setup: github.com/Pengeszikra/react-base , react can easy remove from this.
Eslint give correct result. But one more trick for VS-Code don't show error in

"javascript.validate.enable": false,
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
biomathcode profile image
Pratik sharma

Sure will give it a try!