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

Better follow API guidelines #102

Merged
merged 12 commits into from
Jan 2, 2022
Merged

Better follow API guidelines #102

merged 12 commits into from
Jan 2, 2022

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Dec 22, 2021

Part of #25.

Contains a whole mixed bag of changes, see the changelogs and the diff.

Follow guideline: Getter names follow Rust convention (C-GETTER)
Follow guideline: Methods on collections that produce iterators follow iter, iter_mut, into_iter (C-ITER)
Follow: Types eagerly implement common traits (C-COMMON-TRAITS)
@madsmtm madsmtm added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 22, 2021
@madsmtm madsmtm force-pushed the follow-api-guidelines branch from b0eddb4 to f4ffd99 Compare December 22, 2021 22:59
@madsmtm
Copy link
Owner Author

madsmtm commented Jan 2, 2022

For the crate level docs vs. README, there's not really a concise guideline to follow, so I've chosen to deduplicate it, and put most of it in the crate-level docs.

Follow: Input syntax is evocative of the output (C-EVOCATIVE)
Follow: Type fragments are flexible (C-MACRO-TY)
Part of following: Crate level docs are thorough and include examples (C-CRATE-DOC)
Oversight from #99
Follow: Crate level docs are thorough and include examples (C-CRATE-DOC)
Here's to hoping it actually works, I don't have a new enough system to actually test it
@madsmtm madsmtm force-pushed the follow-api-guidelines branch from 6fda875 to 2bb9180 Compare January 2, 2022 21:20
@madsmtm madsmtm marked this pull request as ready for review January 2, 2022 21:45
@madsmtm madsmtm merged commit 1f48c69 into master Jan 2, 2022
@madsmtm madsmtm deleted the follow-api-guidelines branch January 2, 2022 21:48
@madsmtm madsmtm added this to the objc2 v0.3 milestone Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant