Skip to content

Dict spreads#8369

Merged
zth merged 5 commits intomasterfrom
dict-spreads
Apr 19, 2026
Merged

Dict spreads#8369
zth merged 5 commits intomasterfrom
dict-spreads

Conversation

@zth
Copy link
Copy Markdown
Member

@zth zth commented Apr 19, 2026

This adds support for dict spreads:

let foo = dict{
  "a": 1,
  "b": 2,
}

let baz = dict{
  "b": 4,
  "c": 5,
}

let result = dict{...foo, "b": 3, ...baz, "d": 6}

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 19, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8369

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8369

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8369

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8369

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8369

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8369

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8369

commit: 935e0af

@zth zth requested review from cknitt, shulhi and tsnobip April 19, 2026 13:18
@zth zth marked this pull request as ready for review April 19, 2026 13:18
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@zth
Copy link
Copy Markdown
Member Author

zth commented Apr 19, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@zth zth enabled auto-merge (squash) April 19, 2026 13:32
@zth zth disabled auto-merge April 19, 2026 13:37
@zth zth merged commit fe34ecd into master Apr 19, 2026
32 checks passed
@zth zth deleted the dict-spreads branch April 19, 2026 14:08
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.

2 participants