Re: [go-nuts] [Blog] Context should go away for Go 2

2017-08-07 Thread Linker
Do you know Goroutine local storage  ?

On Mon, Aug 7, 2017 at 11:20 PM,  wrote:

> I also dont want to see context everywhere. At the same time, I don't want
> it to be obfuscated in a confusing way.
>
> ctx is an unfortunate initialism and context.Context package stuttering
> doesn't help.
>
> I suppose you could stuff a pointer on the stack pointing to a potential
> context and then provide a built-in to access this structure. But that
> already sounds confusing and easy to ignore, and you've added a few bytes
> of overhead to each function call by providing an auxillary argument to
> every function and method.
>
> --
> 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.
>



-- 


*Regards,Linker linlinker.m@gmail.com *

-- 
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.


[go-nuts] [Blog] Context should go away for Go 2

2017-08-07 Thread as . utf8
I also dont want to see context everywhere. At the same time, I don't want it 
to be obfuscated in a confusing way. 

ctx is an unfortunate initialism and context.Context package stuttering doesn't 
help. 

I suppose you could stuff a pointer on the stack pointing to a potential 
context and then provide a built-in to access this structure. But that already 
sounds confusing and easy to ignore, and you've added a few bytes of overhead 
to each function call by providing an auxillary argument to every function and 
method.

-- 
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.


[go-nuts] [Blog] Context should go away for Go 2

2017-08-07 Thread faiface2202
Hi everyone!

I've written a blog post called 'Context should go away for Go 2':

https://faiface.github.io/post/context-should-go-away-go2/

The post is about the cancelation problem in Go, how context package solves 
it, why context package is bad anyway, and that Go 2 should do something 
about it. Hope you enjoy reading ;)

PS: I'm not sure if this post is acceptable for an experience report. If 
you think it is / isn't, let me know.

Michal Štrba

-- 
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.