gpt4 book ai didi

go - 自创建以来,Go 发生了很大变化吗?

转载 作者:IT王子 更新时间:2023-10-29 01:59:16 29 4
gpt4 key购买 nike

我最近也在学习 Ember.js。这并不是真正的同类比较,因为 Ember.js 是一个框架,而 Go 是一种语言。 Ember.js 相对较新,我发现今年最近编写的一些教程已经过时了。

例如,这个博客是 2010 年的,https://blog.golang.org/gos-declaration-syntax , 关于 Go 的声明语法是否仍然有效?

最佳答案

Go 在首次公开发布时并没有太大变化。博客不错。

Go 有兼容性保证。

Go 1 and the Future of Go Programs

Introduction
Expectations
Sub-repositories
Operating systems
Tools

Introduction

The release of Go version 1 (March 2012), Go 1 for short, is a major milestone in the development of the language. Go 1 is a stable platform for the growth of programs and projects written in Go.

Go 1 defines two things: first, the specification of the language; and second, the specification of a set of core APIs, the "standard packages" of the Go library. The Go 1 release includes their implementation in the form of two compiler suites (gc and gccgo), and the core libraries themselves.

It is intended that programs written to the Go 1 specification will continue to compile and run correctly, unchanged, over the lifetime of that specification. At some indefinite point, a Go 2 specification may arise, but until that time, Go programs that work today should continue to work even as future "point" releases of Go 1 arise (Go 1.1, Go 1.2, etc.).

Compatibility is at the source level. Binary compatibility for compiled packages is not guaranteed between releases. After a point release, Go source will need to be recompiled to link against the new release.

The APIs may grow, acquiring new packages and features, but not in a way that breaks existing Go 1 code.

关于go - 自创建以来,Go 发生了很大变化吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33183028/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com