Skip to content

named and default args for struct constructors#1

Open
anandrav wants to merge 2 commits into
mainfrom
claude/explain-cloud-environments-MaInQ
Open

named and default args for struct constructors#1
anandrav wants to merge 2 commits into
mainfrom
claude/explain-cloud-environments-MaInQ

Conversation

@anandrav
Copy link
Copy Markdown
Owner

@anandrav anandrav commented May 2, 2026

Reuses the existing FuncArgDetails / function_call_arg_order machinery by
adding a Struct variant to FuncArgDetailsKey and generalizing
update_function_arg_info via a new iter_args() method on the key. Struct
field defaults are name-resolved and type-checked at the type definition,
and reordered into positional form at each call site.

claude added 2 commits May 3, 2026 03:13
Reuses the existing FuncArgDetails / function_call_arg_order machinery by
adding a Struct variant to FuncArgDetailsKey and generalizing
update_function_arg_info via a new iter_args() method on the key. Struct
field defaults are name-resolved and type-checked at the type definition,
and reordered into positional form at each call site.
Cleans up the four positive struct named/default arg tests so the assertion
calls Greeter(...).greet() instead of inlining the field-concatenation, and
mirrors the same pattern in the user-guide example.
@anandrav anandrav force-pushed the claude/explain-cloud-environments-MaInQ branch from 4b505ca to 5caae18 Compare May 3, 2026 03:14
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