Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive enhancements #174

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Derive enhancements #174

merged 2 commits into from
Oct 3, 2023

Conversation

KodrAus
Copy link
Collaborator

@KodrAus KodrAus commented Oct 3, 2023

Closes #170
Closes #169

There's still plenty to polish up in the #[derive] macros, particularly around error handling, but this makes it possible to use consts for labels and indexes in place of literals. The logic for determining an implicit index after an explicit one is to increment the last index if it was provided as a literal, or to just increment the internal counter if it was provided as a const.

@KodrAus KodrAus merged commit 54e2cd3 into main Oct 3, 2023
42 checks passed
@KodrAus KodrAus deleted the feat/derive-enhancements branch October 3, 2023 23:45
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.

Can't use consts as indexes or labels Can't use a generic parameter S in derive
1 participant