renanpvaz / babel-plugin-auto-curry Goto Github PK
View Code? Open in Web Editor NEWPlugin to automatically curry arrow functions
License: MIT License
Plugin to automatically curry arrow functions
License: MIT License
Hello,
Please note that I don't want to blame you or your plugin in any way, this is intended to be a friendly issue.
I was very excited about an auto curry plugin for babel when I found this, but I automatically felt cheated ๐ .
What your plugin does is taking curried functions, and turning them into partially applicable functions. Which is indeed useful depending on the use case, but is the opposite of currying.
I don't want you to change anything I just wanted to discuss this with you. Maybe creating another plugin for doing exactly the opposite ?
First of all, thanks for the great plugin. It generally works exceptionally well.
As noted in the subject, there's only one small issue, which is that the plugin fails when --coverage
option is used with jest.
I don't have time to set up a small test case right now, and I cannot publish the code I'm working on, so sorry about that. Just thought I'd report this anyway in case you know what it could be. If you can't work without a minimal test case, I'll try to come up with something at a later date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.