Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: documentref for self-referencing#960

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
czabaj wants to merge1 commit intorescript-lang:master
base:master
Choose a base branch
Loading
fromczabaj:vg/mutable-self-reference

Conversation

@czabaj
Copy link

@czabajczabaj commentedJan 3, 2025
edited
Loading

I encountered a problem with valid JS code that was hard to translate into rescript - the problem isdiscussed here in the forum - it turned out theref can help with self-referencing.

I promised to add this trick to the documentation, so here it is. Feel free to criticize 😸

I currently added it just to the v11 docs, once this passes validation, I will copy that into other versions as well. I assume it is useful for all versions where mutable let assignment exists?

Here is how it renders

Screenshot 2025-01-03 at 12 38 39

@vercel
Copy link

vercelbot commentedJan 3, 2025

@czabaj is attempting to deploy a commit to theReScript Association Team onVercel.

A member of the Team first needs toauthorize it.

@czabajczabaj marked this pull request as draftJanuary 3, 2025 11:43
@czabajczabaj marked this pull request as ready for reviewJanuary 13, 2025 15:25
@fhammerschmidt
Copy link
Member

Sorry I missed this during my christmas break.

The example seems pretty heavy and we usually try to avoid React-specific code in the main documentation. Can you come up with a simpler example that doesn't need React?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@czabaj@fhammerschmidt

[8]ページ先頭

©2009-2025 Movatter.jp