• We'll discuss type erasure in more detail in Chapter 12, The Scala type System.

    我们第12-scala类型系统详细讨论类型消除

    youdao

  • With type erasure, generic types are used for type checking only; afterwards, they are replaced with their upper bound.

    使用类型消除(type erasure),泛型类型用于类型检查然后,用它们的上界替换它们。

    youdao

  • You'll get a compilation error on the second method because the two methods will have an identical signature after type erasure.

    第二方法得到一个编译错误因为两个方法类型消除拥有一样签名

    youdao

  • Because Tiger relies on type erasure, the naked type parameters in casts and instanceof tests are "erased" to their upper bounds (in the earlier case, that'll be type Object).

    因为Tiger依靠类型除,所以数据类型转换instance of测试中的外露类型参数除”它们上界(前面例子中类型Object)。

    youdao

  • Another consequence of erasure is that using casts or instanceof with generic type parameters doesn't make any sense. The following code will not improve the type safety of your code at all.

    擦除另一个后果泛型类型参数强制类型转换或者instance of毫无意义

    youdao

  • Function types are indeed the natural way to represent the type of a lambda expression, but unfortunately they interact badly with an existing language "feature" : erasure.

    函数类型确实表现lambda表达式类型一种自然方法遗憾的是它们无法现有语言功能“擦除(erasure)”好地进行交换。

    youdao

  • Function types are indeed the natural way to represent the type of a lambda expression, but unfortunately they interact badly with an existing language "feature" : erasure.

    函数类型确实表现lambda表达式类型一种自然方法遗憾的是它们无法现有语言功能“擦除(erasure)”好地进行交换。

    youdao

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

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

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