the-swift-programming-language-in-chinese icon indicating copy to clipboard operation
the-swift-programming-language-in-chinese copied to clipboard

中文版 Apple 官方 Swift 教程《The Swift Programming Language》

Results 22 the-swift-programming-language-in-chinese issues
Sort by recently updated
recently updated
newest added

[@escaping](https://swiftgg.gitbook.io/swift/yu-yan-can-kao/07_attributes#escaping) 的特性翻译严重错误 英文原文: > the parameter’s value can be stored for later execution. This means that the value is allowed to outlive the lifetime of the call. 译文: > 它表示参数将不会被存储以供延迟执行。这将确保参数不会超出函数调用的生命周期。

原文:The escaped special characters \0 (null character), \\ (backslash), \t (horizontal tab), \n (line feed), \r (carriage return), \" (double quotation mark) and \' (single quotation mark) 译文:转义字符 \0(空字符)、\\(反斜线)、(水平制表符)、(换行符)、(回车符)、\"(双引号)、\'(单引号)。 使用google翻译有概率复现相同的错误

Apple 开发者文档已经逐渐在写[官方中文版](https://developer.apple.com/cn/documentation),术语是否考虑和官方翻译对齐? 比如:结构 (structure) vs. 结构体;遵从 (conformance) vs. 遵循;浮点值 (float) vs. 浮点数。

如果拼接一个翻转三角形和一个普通三角形,它就会得到类似于 JoinedShape 这样的类型。 是不是逻辑上应该改为 ,它就会得到类似于 JoinedShape 这样的类型。

/source/01_welcome_to_swift)/03_a_swift_tour.md该文件并发性一节中:`func fetchUserID(from server: String) async -> Int`函数的函数体缺乏部分{}。并且这三个函数的函数名和函数体之间的大括号之间缺乏空格,没有严格按照官方文档来排版。

markdown文件中第296行,`“一个*可变参数(variadic parameter)*可以接受零个或多个值。”`中的斜体不能正确渲染,在不能正确显示的斜体的*后面加上空格,斜体即可正确渲染,具体原因不明。