On Sun, Feb 28, 2021 at 7:04 AM zhz shi <messi.sh...@gmail.com> wrote:
>
> According Russ's plan(replacing cmd/compile/internal/types with types2) and 
> the discussion topic Jeremy Faller posted, can I understand it as that check2 
> will be the entry of new and default typechecker in the future(with the 
> release of 1.18 one year later)? And the current type-checking code will be 
> removed at the same time? If so I think I'd better to use master branch for 
> learning.

That is likely but not certain.


> And one more question please. I found there's copy of lex/parser and AST dcls 
> under https://github.com/golang/go/tree/master/src/go as public API, why the 
> compiler doesn't reuse this part of code, but keep a separate copy?

The go/parser and related packages fall under the Go 1 compatibility
guarantee, which makes it hard to update them as we learn more about
what the compiler needs.  Although there is duplicate code, it seems
simpler overall for the compiler to have its own parser.

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/CAOyqgcXkK-se2dG54mqznzGtYwdY-biNeKRpscgAhHeLbWxAAg%40mail.gmail.com.

Reply via email to