← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 1903.c.4.c.2

资源改名须声明身份

理解等级:中级

工具一般无法区分改名与删旧建新。moved 块或资源别名显式说明新旧代码身份指向同一真实资源,可避免不必要销毁。书中 moved 的讨论限于栈内改名;所有实例完成迁移后应清理不再需要的迁移声明,避免代码长期堆积历史。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 变更既有基础设施 · 查看原书依据

      The moved block tells the tool to update the state file to map the existing resource to its new identity. The implementation of this feature is idempotent and can be applied to infrastructure regardless of which version of the code was applied before. However, you

    参考来源

    - 位置:《Infrastructure As Code》第20章《变更既有基础设施》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch20.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“工具一般无法区分改名与删旧建新”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:The moved block tells the tool to update the state file to map the existing resource to its new identity. The implementation of this feature is idempotent and can be applied to infrastructure regardless of which version of the code was applied before. However, you