Note, the last idea was totally wrong, you d just do `theCtx1[, returns of 
hello...] := ctx hello()` etc.

within hello, if you want to get the context `thisCtx := ctx.get()` // 
which returns current/ZeroContext depending



On Saturday, April 15, 2017 at 9:21:32 AM UTC+2, mhh...@gmail.com wrote:
>
> hi,
>
>
> The question is in the title,
>
> the rationale, all the changes needed to apply on the source code to a add 
> context as a parameter.
>
> We may imagine a ctx as a special keyword, where `ctx hello()` would
> arrange hello body (and so forth recursively) to insert ctx.Done call 
> appropriately (as much as possible, maybe at regular tick ? or just insert 
> calls into the ast)
> and to get the ctx have a ctx.get() special keyword, if needed. etc
> For the return arguments, it could generate automatically the appropriate 
> default values for the func signature currently ctxed and a special error 
> value for a ctx.done (again it needs some analysis of func signature, just 
> some implementation details).
>
> Just wonder.
>
>
> thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to