Proposal: Optional "return" as Syntactic Sugar in ReScript 13
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, ocaml
調査の方向性
この issue にはファイル、テスト、コンパイラのエントリーポイントが記載されていません。まず RFC の議論と、予定されている core team のレビューから始めてください。完了とするには、承認済みのプロトタイプとドキュメントのドラフトを用意し、その後コミュニティからフィードバックを得る必要があります。
索引モデルが issue の本文から書いたものです。
説明
Author: Jonathan Jewell Status: Draft / RFC Goal: Facilitate onboarding for JS/TS developers without compromising ReScript’s functional core.
Overview
Add return as optional syntactic sugar for function expressions. This desugars to the last expression during compilation, with zero semantic or performance impact.
Call to Action
- If this sounds good, I am offering to:
- Implement the prototype and draft documentation.
- Monitor community feedback and report back before ReScript 14.
- Proposal team:
- Greenlight: To try it as an experiment, see what the reception is.
- Feedback: Suggest improvements or dealbreakers.
- Veto: If the team feels this is misaligned, we can drop it - no hard feelings!
Final Note:
This is not about changing ReScript, but I think it is useful in helping onboard more developers to discover why it is great and helps users implement some of the most basic functions in their language in Rescript. If it does not work or is received poorly, we can kill it without any issue. But in any case, it is optional for use, and - as sugar - and would not anticipate any reason to affect backward compat or future ambitions for the language.
Next Steps:
- Discuss in the next core team meeting.
- If approved, I’ll open a PR for the prototype.
- Interact with the community via an RFC or blog post.
- 主要言語
- OCaml
- スター
- 7.5k
- フォーク
- 485
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 49
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rescript-lang/rescript のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript#8659 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript#8647 ·
メンテナーはふだん 1 日以内に返信
-
Untagged variants: boolean literal/payload overlap is rejected while string, int, float and bigint overlap is allowed対応中かも @cknitt が 20 日前に担当しました。 オープン
rescript-lang/rescript#8632 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
rescript-lang/rescript#8624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
rescript-lang/rescript#8596 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
rescript-lang/rescript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sveltejs/acorn-typescript#150 ·
-
area:stdlib found-by:code-review kind:silent-wrong
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
InauguralSystems/EigenScript#1338 ·
メンテナーはふだん 1 日以内に返信
-
better error message generics low priority
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100