Programs written against a current Go version should continue to work
indefinitely.
So, yes, if you don't want to take advantage of generics (or other Go 2
changes), you don't have to do any work to have your program continue to
work. That's why I don't like the "Go 2" label - there just won't be a
traditional compatibility break (most likely).

There is, of course, one caveat: Any observable change in behavior can be
made "breaking", by writing a program that a) observes the behavior, b)
does nothing under the current behavior and c) panics under the new. That
is, you can write a program that, for example, passes a go program using
generics to go/types and panics *if that compiles*. Then, technically, that
program breaks once we introduce generics.

But I think apart from artificial situations like that, any reasonable
program can be reasonably assumed to continue working as before.

On Wed, Jan 27, 2021 at 10:10 PM clément auger <clementauger...@gmail.com>
wrote:

> Hello,
>
> I am wondering if some backward compatibility is planned for programs
> heavily relying
> on *ast, parser, type, packages* packages to analyze, interpret,
> manipulate go source code.
>
> I read this morning the blog and it says
> 'The language changes are fully backward compatible' in its last news on
> this topic,
> does it apply to this case ?
>
> I am wondering the same question about the reflect package.
> I wonder at which extent it will have to be modified to welcome this new
> feature.
>
> I am asking those questions partly because i hope I will be able to
> transition without work, tbh, though maybe it wont be possible ?
>
> In any cases, can I already read the new implementation somewhere or is it
> too soon ?
>
> thank you for reading.
>
> --
> 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/148f99b9-1e1a-4d0a-a3d2-44ac068bf230n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/148f99b9-1e1a-4d0a-a3d2-44ac068bf230n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAEkBMfFORt8xVjJW%2B_ATW3PJykbo0v%2BzAiuhgOjdOeOkY_59jw%40mail.gmail.com.

Reply via email to