-
Notifications
You must be signed in to change notification settings - Fork 15
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
Nullable denominator review #51
Nullable denominator review #51
Conversation
We could declare the status enum as a backing field again and work with a nullable field there (just like with the denominator). |
Oh, no need- I think we can either
|
Is there another reason why the FractionState needs to be queried? Would an If so, I would prefer your suggestion with a BackingField ( |
763a46b
into
danm-de:lipchev-support-nan-and-infnity
This is my preferred option, I'm just just struggling to find a good name for the field/property.
|
Unfortunately, the constructor parameter probably needs to be renamed. var a = new Fraction(1, 3, reduce: false);
var b = new Fraction(1, 3, reduce: true); As backing-field: We leave out the |
unconfirmed suggests to me that we're awaiting confirmation.. ("where is the
|
The name of the constructor parameter can be either |
As a verb, |
I agree with you. Not all of the design decisions back then were good. However, I would not like to remove these constructors in order to keep the breaking changes within an acceptable range. |
Sure, I was thinking of adding some additional comments to all public members but didn't want to pollute the diffs before (we should have done the solution-reformatting stuff earlier...). |
The only reason I duplicated your branch in a second pull request was because I lost track of all the changes 🥲 😄 . I am currently in the clinic (my employer) and am busy with other topics today. |
Ok, I'm now pointing at the right branch:
What do you think about making
default(Fraction).State == FractionState.IsNormalized
?