Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Leverage comptime fields to give generated Tuple a default value, allowing TupleT and Tuple to be merged.

Only call generate.Tuple on the final output. This eliminates redundant deduplication, and results in a simpler API (nested types just need to expose a natural Zig tuple).

generate.Union leverages the new Tuple and removes unused features.

Leverage comptime fields to give generated Tuple a default value, allowing
TupleT and Tuple to be merged.

Only call generate.Tuple on the final output. This eliminates redundant
deduplication, and results in a simpler API (nested types just need to expose
a natural Zig tuple).

generate.Union leverages the new Tuple and removes unused features.
Copy link
Member

@francisbouvier francisbouvier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR. More concise, cleaner and simpler API. Well done.

Just a few minor things.

Implements RP suggestions.
@francisbouvier francisbouvier merged commit 1594f14 into lightpanda-io:main Feb 6, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
@karlseguin karlseguin deleted the generate branch February 6, 2025 11:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants