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 initialization of results in arithmetic and unit conversion to allow more flexibility in subclasses #2301
Conversation
This is not a change in behavior in convert_unit_to, just indicating in the doctoring what is being done.
I think this looks alright. What we might want to lean toward in the future, which is trick the |
👍 More flexibility would be great. |
@wkerzendorf @astrofrog - one or both of you may want to look at this, but it looks fine to me as a measure to make things more flexible now. @embray may be right that we want to generalize this more, but I think we need to see a few more use-cases before it's worth the effort. E.g., if Oh, and minor tip, @mwcraig : If you put |
@eteq -- will try to get in the habit of putting closes in the commit log, but it does work from the pull request body too (though not the PR title): https://help.github.com/articles/closing-issues-via-commit-messages |
@mwcraig - looks good to me - could you add a unit test? |
@astrofrog -- tests added! |
Nice, @mwcraig - didn't know that (or maybe I did and forgot...). I guess I was thinking of titles, then. Not terribly important to be in the commit log, then - only very mild preference. Looks good to me, as the tests are now passing. Lets give @wkerzendorf another day or two to answer if he has a chance, otherwise we can go ahead and merge this? |
@mwcraig I think that looks like it fixes it - job well done (sorry for delayed response - am travelling). |
Alright, great, then I'll merge. Thanks @mwcraig ! |
Make initialization of results in arithmetic and unit conversion to allow more flexibility in subclasses
Hmm... I would have just replaced the data member with a |
@mdboom -- does
|
Sorry I wasn't clear. |
At some stage I had the idea that On Thu, Apr 17, 2014 at 8:16 PM, Michael Droettboom <
|
This PR would close #2300