rescript-lang / rescript-lang/rescript-lang.org
Document required ECMAscript version
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 1.9k
- Forks
- 260
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 17
Description
I don't think we have documented the requirements on the JS version / spec at the moment.
Starting with v12, ES6 (ECMAScript 2015) is required because we are now making use of the following ES6 features:
- let keyword
- arrow functions
- spread operator
Originally posted by @cknitt in https://github.com/rescript-lang/rescript-compiler/pull/7030#issuecomment-2342657669
Document for both:
- v11 is mostly es5 (some stdlib functions may already have been es6)
- v12 is just es6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the relevant v11 and v12 documentation entry points in the rescript-lang.org site. Document that v11 is mostly ES5 with possible ES6 standard-library usage, and that v12 requires ES6, including the listed features. Done means both version requirements are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100