-
Notifications
You must be signed in to change notification settings - Fork 266
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
Change to Continuation format #71
Change to Continuation format #71
Conversation
Thanks for this PR. You've put a lot of work into this project already and just want to say thanks for that! This is a great improvement. I changed the base to develop and I might think about some naming before releasing this, but I am planning to create a new release with this change in the next couple days! I was thinking perhaps we keep calling the |
If you wanna use that name format no problem, was just trying to avoid confusion (keeping HttpHandler as the composable fn), although on the composable handler, perhaps we use 'HttpPipe' as pipeline describes line of pipes, such that we can describe a web app as a handler pipeline? (Doesn't make much difference but to me pipeline always makes me think of the entire composed pipeline). |
Yeah I hear what you say... agree with you that pipeline is the entire thing put together. I will think a bit more about different names and if you have any suggestions please let me know. I just want to make sure that we pick some names that will make it easier for developers to talk about when discussing a Giraffe web application architecture, etc. |
Yeah fully agree, names have to be clear so there is no confusion discussing application architecture. Would it be worth ccing a few other main users/contributors to chime in on naming convention, so we cover all bases? |
sure! @slang25 @JonCanning @xdaDaveShaw @nicolocodev @Neftedollar @toburger @GraanJonlo @diegobfernandez @dsincl12 I cc'd everyone who was listed as a contributor under this project so far. Everyone welcome to chime in! |
I'll throw in a few words for brainstorming: pipe, pipeline, handler, bond, circuit, chain, link, belt, flow, ... |
@gerardtoconnor What do you think of this: type HttpActionResult = Async<HttpContext option>
type HttpAction = HttpContext -> HttpActionResult
type HttpHandler = HttpAction -> HttpAction EDIT: |
Good point on the names being too similar/subset, needs to be clearly different to avoid confusion. On the HttpAction naming, might that cause confusion with c# parameterless lambda? I think HttpAction might confuse some people? If we are sticking with HttpHander for the composable part, we just need to figure out type name of continuation? Potential Alt names could be: HttpNext |
Hi, I've renamed it to I thought of |
I was suggesting How do you feel on Fine with leaving as is for now if you prefer, I'd rather focus on Task CE, than worrying too much about the name. |
I think pipe is too abstract. I can settle on |
Sure we can leave as is for now and see if anyone else proposes any new
ideas, Quick to change later once we have a broader consensus back.
Have you managed to migrate any projects testing the new format?
Once you're happy with the continuation PR, I can resubmit Task CE based
off this branch, using improved binding (through extension methods) that
remove the requirement of type assertions on bindings.
…On 31 July 2017 at 16:22, Dustin Moris Gorski ***@***.***> wrote:
I think pipe is too abstract. I think I could settle on HttpFunc if
you're happy with it too :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFI6vzsdPJbxNcw6ni6SoDJoGzVAGhiyks5sTfFCgaJpZM4OnYjA>
.
|
As discussed, PR is using existing async format (not Task), and is just updating Httphandlers to double parameter format that includes continuation.