Repository navigation
Conversation
- Parse `{...e}` among an element's attributes (ref + crate). On an HTML
element it is Solid's spread; on a component, a function source of
Solid's merge between runs of named props: the last part with a field
wins, and each field keeps updating.
- Checker: a spread on a component is the "*" argument; its failures,
holds and O-3 stores go wherever any field goes (R-2, R-f-5).
- 07 §4, S-surface-5 (all five runners, crate parity incl. --lower and
--project), guide/language.md.
- Site: the props example spreads the rest onto the element.
- Bump everything to 0.3.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWNkVdujweQpFRfpvoj
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ryan · project thread
Adds
{...e}among an element's attributes, as JSX has it. Merging this publishes 0.3.1, the same way as #60.Semantics (07 §4, taken by default)
spread. On a component it is a function source of Solid'smerge, placed between runs of named props."*"argument. Its failures, holds and O-3 stores go wherever the component reads any field, so nothing is forced to the call site. Messages show it as<Card {...…}>.{x}as an attribute is a parse error that names the spread form.Where
ref/src/parse.tsandcompiler/src/parse.rs.check.tsandcheck.rs.runtime.ts, a Proxy only when a spread is present.mergeandsetProp.compile/emit.tsandemit.rs/oxc.rs. CSS-2 now seeshas_spread.types/project.tsandproject.rs.Tests
S-surface-5passes on the interpreter, oracle, compiled, ssr and types runners, including a rejectedUNHANDLED_FAILUREthrough a spread.crate.ts363/363.--lowerand--projectagree on all programs except one--projectfailure,prelude: compiler/src/prelude.ts is not types/project.ts's PRELUDE, which also fails on main without this change.Also
guide/language.mdand the CHANGELOG.<span class={tone} {...rest}>.Generated by Claude Code