Skip to content

T106: object rest in destructuring - #278

Merged
Fausto95 merged 1 commit into
mainfrom
t106-object-rest
Oct 14, 2026
Merged

Fausto95 merged 1 commit into
mainfrom
t106-object-rest

Conversation

@Fausto95

Copy link
Copy Markdown
Owner

Object rest in destructuring now compiles (T106's first item; LUCENT1004 until now).

  • const { a, ...rest } = v binds a new object of the rest's type, with the fields that type names copied from v, as spread copies them; an unset optional field stays unset. A record's rest is a new record without the keys the pattern names.
  • Works in declarations, parameters, for…of and assignments (({ a, ...rest } = v)).
  • A class instance's rest stays LUCENT1004. The diagnostic's entry and the website's refused sample are now about computed keys.
  • e2e object-rest: objects, unset optionals, renames and defaults, parameters, records, assignments, a new object rather than a view of the old one, for…of, a local on the stack, and { ...all }.
  • ROADMAP's What's next gains T106, then T105.

Stacked on #277.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB


Generated by Claude Code

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project lucent with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project lucent with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lucent Error Error Oct 14, 2026 10:12pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
website Ignored Ignored Preview Oct 14, 2026 10:12pm UTC

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project website with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@Fausto95
Fausto95 force-pushed the ci-app-check-timeout branch from 425d125 to 6c89d00 Compare October 14, 2026 14:02
@Fausto95
Fausto95 force-pushed the t106-object-rest branch 2 times, most recently from bf7b65d to eee59e3 Compare October 14, 2026 16:33
@Fausto95
Fausto95 force-pushed the ci-app-check-timeout branch from 6c89d00 to 4ac017c Compare October 14, 2026 16:33
`const { a, ...rest } = v` binds a new object of the rest's type with the
fields that type names, as spread copies them, or a new record without the
keys the pattern names; in declarations, parameters, for…of and
assignments. A class instance's rest stays LUCENT1004, now named for
computed keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
@Fausto95
Fausto95 changed the base branch from ci-app-check-timeout to main October 14, 2026 22:11
@Fausto95
Fausto95 merged commit 25c75db into main Oct 14, 2026
@Fausto95
Fausto95 deleted the t106-object-rest branch October 15, 2026 08:46

This branch had an error being deployed

1 failed deployment
Preview – lucent — f2ea0c11 Deployed Oct 14, 2026 by vercel[bot]
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