go top

根据上下文推断类型

网络释义

  Inferring Type From Context

而其中一个参数现在变成了内联闭包(相比于backwards版本的代码)。 根据上下文推断类型(Inferring Type From Context) 因为排序闭包函数是作为sort函数的参数进行传入的,Swift可以推断其参数和返回值的类型。

基于24个网页-相关网页

有道翻译

根据上下文推断类型

Infer types from context

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 类型推断情况下,编译器根据上下文推断类型

    In type inference, the compiler infers the types of values based on the context.

    youdao

  • 对于向上转换运算如果编译无法根据上下文推断特定目标类型,则将报告错误

    As for the upcast operator, if the compiler cannot infer a specific target type from the context, it reports an error.

    youdao

  • 使用向上转换运算编译会尝试根据上下文推断转换为的类型

    When you use the upcast operator, the compiler attempts to infer the type you are converting to from the context.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定