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

Make insert_non_basic_units a method #4805

Closed
wants to merge 3 commits into from

Conversation

younies
Copy link
Member

@younies younies commented Apr 14, 2024

No description provided.

@younies younies requested a review from a team as a code owner April 14, 2024 01:04
@younies younies requested review from robertbastian and removed request for a team April 14, 2024 01:04
@robertbastian robertbastian changed the title Move a function that belongs to ConverterFactory to its class Make insert_non_basic_units a method Apr 15, 2024
@@ -38,6 +38,21 @@ impl From<Sign> for num_bigint::Sign {
}
}

/// A struct that contains the sum and difference of base unit powers.
Copy link
Member

Choose a reason for hiding this comment

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

nit: keep this in the method

Copy link
Member Author

Choose a reason for hiding this comment

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

unfortunatley, it is used as output that is used in other places

Notice: map: &mut LiteMap<u16, PowersInfo>,

Copy link
Member

Choose a reason for hiding this comment

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

I don't think this PR is worth it then. insert_non_basic_units is an implementation detail of is_reciprocal, and PowersInfo is an implementation detail of that. Having them both at the top level is not well encapsulated.

Copy link
Member

@robertbastian robertbastian left a comment

Choose a reason for hiding this comment

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

.

@younies younies marked this pull request as draft April 17, 2024 06:55
@younies younies closed this Jun 4, 2024
@younies younies deleted the dev-factory branch June 4, 2024 14:33
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.

None yet

2 participants