Conversation
原文是 :Removing a field is just like adding a field, with backward and forward compatibility concerns reversed.
Collaborator
|
你好,建议这边仍然保留原译文的描述,对照上下文也很好理解,如果按英文直译我觉得反而有点拗口? |
Author
|
我的理解是,当删除一个可选字段时,旧代码可以读取新数据(该数据中删除了一个字段,且字段在原模式中可选的),旧代码默认此字段未设置(optional且没默认值)或使用此字段的默认值,这是向前兼容。 |
Collaborator
这句我同意的,我前面回复的意思更多是说直译出来会有点拗口,原文前面两段话是在说新增字段对向后兼容性的影响,然后接下来这段是在说删除字段对向前兼容性的影响,所以我觉得现在的译文感觉还更清楚一些。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原文是 :Removing a field is just like adding a field, with backward and forward compatibility concerns reversed.