← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4545.g.5

兼容承诺降低升级成本

理解等级:高级

Go1兼容承诺旨在让按规范编写的程序跨后续Go1版本继续编译运行,降低库和大型团队的升级负担。它允许增加能力,并不是语言永远停止变化。补充边界:官方兼容说明列有安全问题、未定义行为和依赖实现细节等例外,不能把承诺当作任何旧程序永远行为不变。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Why Go Rules the Cloud Native World · 查看原书依据

      The natural consequence of this is an explicit promise, from the Go design team to the Go users, that programs written in Go 1 will continue to compile and run correctly, unchanged, for the lifetime of the Go 1 specification. That is, Go programs that work today can be expected to continue to work even

    参考来源

    - 位置:《Cloud Native Go》第02章《Why Go Rules the Cloud Native World》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch02.xhtml) - 结论依据:Go1兼容承诺旨在让按规范编写的程序跨后续Go1版本继续编译运行,降低库和大型团队的升级负担。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:The natural consequence of this is an explicit promise, from the Go design team to the Go users, that programs written in Go 1 will continue to compile and run correctly, unchanged, for the lifetime of the Go 1 specification. That is, Go programs that work today can be expected to continue to work even