Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Dict : Accessing items with bracket, like an array or object

オープン
#8,163 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@zth がすでに取り組んでいます。

2026年4月19日 から。

評価

この issue はまだ評価されていません。

説明

For adict{}, we can access a value only by using Dict.get

let d = dict{"A": 5, "B": 6, "C": 7}

let a = d->Dict.get("A")

The goal is to also using a bracket syntax, like with arrays or objects (without removing Dict.get, just like Array.get and Object.get still exist)

let d = dict{"A": 5, "B": 6, "C": 7}

let a = d["A"]

This would allow some bindings to use dict{} instead of {..} while keeping the same ease of access to values.


The next step could be variable keys but I created this feature request to propose a smaller step that can already be really useful, without having to wait for variable keys.

主要言語
OCaml
スター
7.5k
フォーク
485
平均マージ
1日 2時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rescript-lang/rescript のほかの issue

rescript-lang/rescript の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。