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

use ConstZero instead of Default #838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use ConstZero instead of Default #838

wants to merge 1 commit into from

Conversation

burrbull
Copy link
Member

@burrbull burrbull commented May 9, 2024

Advantages:

  • more consts
  • zero is more semantically correct then default
  • cleaner code

Disadvantages:

  • advanced num-traits dependency
  • rustdoc still not good with const defaults

cc @Emilgardis

@burrbull burrbull requested a review from a team as a code owner May 9, 2024 04:37
@burrbull burrbull force-pushed the const-default branch 2 times, most recently from 96ad0c3 to f6246e3 Compare May 9, 2024 04:43
@burrbull

This comment was marked as outdated.

This comment was marked as outdated.

@burrbull burrbull changed the title use ConstDefault instead of Default use ConstZero instead of Default Dec 11, 2024
@burrbull burrbull force-pushed the const-default branch 4 times, most recently from c168040 to d22e32e Compare December 11, 2024 20:58
@burrbull
Copy link
Member Author

/ci diff pr

Copy link

Diff for comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant