Re: [go-nuts] Generics and parentheses

2020-07-15 Thread Yaw Boakye
To summarize the thread so far: - parenthesis is a no-no - angle brackets are popular/common but that alone doesn't make good argument. some languages have already deviated. scala is popular, uses square instead of angle brackets. - go's current pseudo-generic data structure, the map, already

Re: [go-nuts] Re: Generics and parentheses

2020-07-15 Thread Yaw Boakye
I'm in favor of the square brackets. scala has them as well so we're not exactly blazing a new trail. I'm not in favor of a second `type` keyword whose benefit is to disambiguate syntax to the parser. we already use significant whitespace to identify tokens. for example, we expect to be parsing a

Re: [go-nuts] Re: Generics and parentheses

2020-07-18 Thread Yaw Boakye
I don't know if the recommendation to use guillamets is out of spite for the ongoing deliberations. But if it's a serious recommendation, then can some recommend where I can buy one of these European keyboards? On top of that, I could start a business selling European keyboards to Go programmers

Re: [go-nuts] [generics] Separating type parameters, regular parameters, and return parameters

2020-11-27 Thread Yaw Boakye
On potentially introducing backwards incompatible change, good point. I agree that we shouldn't which means the colon would be optional. I disagree on accepting "that generic function signatures are inherently more crowded and less readable." I mean, inherently more crowded and less readable

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-07 Thread Yaw Boakye
I could be misleading you here, but my immediate thought is that whether you can stream the body/payload depends on what form you're receiving the query result in? if it's an io.Reader then it looks like you could use it directly. otherwise i'm not sure what you could do to the HTTP client to