Skip to content

Add @uncurry decorator syntax lookup#179

Merged
ryyppy merged 5 commits intorescript-lang:masterfrom
kevanstannard:uncurry-decorator-syntax
Jan 15, 2021
Merged

Add @uncurry decorator syntax lookup#179
ryyppy merged 5 commits intorescript-lang:masterfrom
kevanstannard:uncurry-decorator-syntax

Conversation

@kevanstannard
Copy link
Copy Markdown
Contributor

Suggestion for the @uncurry decorator syntax page for #162

I've experimented with this one a little, but I haven't yet found it to make any difference. I.e. using the decorator or omitting the decorator had no obvious effect on how the callback is called, or the resulting generated JS code.

I'm guessing the code I've tried so far has not been complex enough to trigger the benefits this decorator brings? Just thought I would mention it.

As usual, happy to receive any feedback on this PR.

Comment thread misc_docs/syntax/decorator_uncurry.mdx Outdated
Copy link
Copy Markdown
Member

@ryyppy ryyppy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small rephrasing required.

Small note: A paragraph should always be in one line, so it's easier to diff on them (use line-wrapping for editing)

Comment thread misc_docs/syntax/decorator_uncurry.mdx Outdated
Comment thread misc_docs/syntax/decorator_uncurry.mdx
Comment thread misc_docs/syntax/decorator_uncurry.mdx
@@ -0,0 +1,36 @@
---
id: "uncurry-decorator"
keywords: ["uncurry", "decorator"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before i forget, one of the keywords should probably also be @bs.uncurry, due to the fact that we will have a lot of users on old versions of ReScript / older blog posts that still use the @bs. prefix convention.

Not a blocker, just wanted to mention

@ryyppy ryyppy merged commit eaeeb35 into rescript-lang:master Jan 15, 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

Successfully merging this pull request may close these issues.

2 participants