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

Doc: Beautify pipe code example slightly more #483

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

redbar0n
Copy link

@redbar0n redbar0n commented Feb 3, 2022

No description provided.

@ryyppy
Copy link
Member

ryyppy commented Feb 4, 2022

We intentionally didn't use any open Js.Array2 to keep topics isolated

@redbar0n
Copy link
Author

redbar0n commented Feb 4, 2022

Makes sense. Though the docs are also a gateway that gives many the first impression of the language. So maybe a note should be made that it could be made even more beautiful. Since the context was about beauty: "This looks much worse than the JS counterpart! Clean it up visually with pipe:".

https://rescript-lang.org/docs/manual/latest/pipe#js-method-chaining

To show the full extent of how beautiful ReScript can be.
Link further to the relevant docs about modules, for those interested.
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.

None yet

2 participants