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

Promise base from nloewen [WIP] #87

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ericnewton76
Copy link

Picking up where nloewen left off.

Merged all master changes into promise_base

Tests all come back fine.

BrknRobot and others added 5 commits March 17, 2017 13:27
This allows code which can handle any type of promise. Creating IPromiseBase allows IPromise, IPromise<int>, and IPromise<MyFunClass> to all be treated identically, without creating code branches for each. The IPromiseBase interface is implemented explicitly, which avoids creating ambiguous functions.

Additionally, the Promise_Base class allows for a decent amount of code reuse between generic and non-generic promises.
@ericnewton76
Copy link
Author

ericnewton76 commented Oct 18, 2018

of note, should formally remove packages folder from repo and .nuget folder

@ericnewton76
Copy link
Author

Hello? Anybody here to merge this in? Or at least review?

@RoryDungan
Copy link
Contributor

Hey, sorry it's taken me a while to get back to you. I've been out of office the past week and have also had quite a few other projects going on. Overall I think it looks like a great addition and it looks like all the tests pass.

The only thing I think I'd consider changing is renaming Promise_Base to PromiseBase because elsewhere we try to stick to PascalCase for class names. Promise_NonGeneric breaks this rule but that's because the underscore takes the place of a comma, so it should read as "promise, non-generic". I think in this case "promise base" makes more sense than "promise, base".

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.

3 participants