Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rationale for CssJs uncurried functions? #225

Closed
TomiS opened this issue Jan 6, 2021 · 1 comment
Closed

Rationale for CssJs uncurried functions? #225

TomiS opened this issue Jan 6, 2021 · 1 comment

Comments

@TomiS
Copy link
Contributor

TomiS commented Jan 6, 2021

Hey. I'm trying to convert some of our components to use CssJs module in ReScript syntax. I noticed all of the CssJs functions such as style are defined as uncurried and require the dot to be used when calling. I'm wondering if the requirement for uncurried is absolutely necessary (I don't know, I'm just asking), because the style function is used a lot and every weird quirk (like requiring a dot) makes it that much more cumbersome to use. Also the type hint is ugly with uncurried functions.

@giraud
Copy link
Owner

giraud commented Jan 7, 2021

I don't have the button to convert an issue to a discussion, so I copied it to #228.

@giraud giraud closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants