On Fri, Sep 10, 2021 at 5:28 AM Kamil Ziemian <kziemian...@gmail.com> wrote:
>
> I try to work my way through "Type Parameters Proposal" 
> (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md).
>  With my speed, I maybe and reading this very well written document before 
> type parameters will be implemented in Go. xD Jokes aside, when I read it I 
> found few sentences that sounds odd to me. Maybe some good soul would explain 
> to me, am I right, or this is my bad, not good English?
>
> At the beginning of the section (?) "Using a constraint" 
> (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#using-a-constraint)
>  there is sentence "As shown above, constraints appear in the type parameter 
> list as the meta-type of a type parameter." But I think that is should read 
> "shown below".

I think "shown above" is correct.  The document has already shown
using the constraint "any".


> In the second paragraph (?) of the section "Operations based on type sets" 
> (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#operations-based-on-type-sets)
>  we read "For special purpose operators like range loops, we permit their use 
> of the type parameter has a structural constraint". Meaning of it is clear to 
> me (at least it is), but it sound odd when I read it. Maybe is should be 
> something like "the type parameter that has a structural constraint"?

Thanks, it should be "if" rather than "of".  I'll fix it.


> At the end totally pedantic hair splitting. At the end of the "Type sets" 
> (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#type-sets)
>  we have code snippet "interface{ E1; E2}". I feel that more consistent with 
> the rest of the code would be with one more space: "interface{ E1; E2 }".

Thanks, I'll fix that too.

Ian

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVeFANeFmSMw-reQA4wp5RJF%2B9yU-9y61mPhGeNJV_9Yw%40mail.gmail.com.

Reply via email to