• Mixins and generic classes: a perfect match.

    mixin泛型完美组合

    youdao

  • This is where a very useful feature comes in: Mixins.

    Ruby一个非常有用的特性Mixin可以帮我们完成方面的工作。

    youdao

  • Thus, in Jam, the visitor pattern can't be used with mixins.

    因此Jam 中访问者模式不能mixin 一起使用

    youdao

  • Mixins are more useful when addressing cross-browser issues.

    解决跨浏览器问题时,混合类型有用

    youdao

  • Mixins are allowed to have parameters, just like components.

    混合允许参数组件一样。

    youdao

  • Mixins are classes that are parameterized by their parent class.

    mixin那些它们参数化的类。

    youdao

  • In the case of mixins as generic types, we can apply the same solution.

    mixin作为泛型类型情况中,我们可以应用同样的解决方案。

    youdao

  • Sass also allows to parameterize Mixins, which adds some extra flexibility.

    Sass允许混合类型作为参数,使得混合类型的应用更加灵活。

    youdao

  • Mixins can be viewed as functions mapping existing classes to new subclasses.

    mixin视为现有映射成子类函数

    youdao

  • When mixins are formulated as generic classes, the problem of accidental overrides is particularly nasty.

    mixin明确表述泛型时,意外覆盖问题特别讨厌

    youdao

  • Mixins can be instantiated with different parent classes depending on the requirements of a particular context.

    根据特定上下文要求可以不同实例化mixin

    youdao

  • The reason: both mixins and generic classes can be thought of as functions mapping existing classes to new classes.

    原因是:mixin泛型认为是将现有映射函数

    youdao

  • Mixins may not have a template. They integrate with the component strictly in terms of invoking render phase methods.

    混合组件可以没有模板他们根据调用呈现阶段方法组件结合。

    youdao

  • Nevertheless, it's a very unfortunate restriction because it limits the set of classes eligible to be turned into mixins.

    然而一个非常遗憾约束因为限制适合于转换mixin集合

    youdao

  • To support mixins through generic types, we need to have run-time representations of the generic type instantiations available.

    为了通过类型支持mixin我们需要获得泛型类型实例化运行时表示

    youdao

  • With mixins formulated as generic classes, we always have a handle on the parent class, the type parameter that the class extends.

    mixin明确表述泛型我们就始终柄,它是该类继承的类型参数

    youdao

  • Mixins in Jam, like ordinary classes, define types; mixin instantiations have both the type of the mixin and the type of the parent.

    Jam中的mixin普通相似定义类型mixin实例拥有mixin类型父类类型。

    youdao

  • Although mixins are simply a design pattern in these languages, there's no reason why they can't be supported at the language level.

    尽管mixin只是这些语言中的一种设计模式语言级别上支持它们应该是毫无问题的。

    youdao

  • By incorporating mixins using generic types, we are able to work around many of the key limitations of other formulations of mixins.

    通过使用泛型类型合并mixin我们解决其它mixin公式许多关键限制

    youdao

  • Other OCCI resources might also need a mapping, such as some Links and Mixins, which are defined by the OCCI infrastructure model extension.

    其他OCCI资源可能需要映射例如某些LinkMixin它们OCCI基础设施模型扩展所定义

    youdao

  • This was sometimes called a "mixin" in C++, though not to be confused with Ruby mixins (or the Scala mixin, which I'll discuss in a later article.)

    有时 C++ 中称为混合”,Ruby混合文中探讨Scala 混合)有所不同。

    youdao

  • It then overrides the click method with an implementation that looks almost the same as the overridden method shown in the section called "Traits as Mixins".

    然后重写click方法混合Traits章节重写方法几乎一样实现

    youdao

  • Sass and LESS are meta-languages meant to simplify and improve the reusability of CSS3 by introducing nesting, variables, inheritance, mixins, and other enhancements.

    SassLESS 是一种元语言,通过引入嵌套变量继承mixin以及其它强化简化提高CSS3可重用性

    youdao

  • Although the concept of mixins has been applied to many languages, Jam is novel in that it introduces mixin-based programming rigorously in the context of a strongly typed language.

    尽管mixin概念已经应用到了许多语言中,但是Jam还是很新颖,因为严格类型化语言上下文中严格引入了基于mixin的编程

    youdao

  • Jam mixins can be instantiated only on classes; unlike components in Jiazzi, there is no notion of mixin composition (however, the Jam team would like to explore such an extension).

    只能根据实例Jammixin;与Jiazzi中的组件不同,Jam中没有mixin组合概念(但是,Jam团队有意探究这样的扩展)。

    youdao

  • We'll relate such a formulation of mixins to previous discussions of this powerful language feature, discussing the advantages and disadvantages of adding mixins through generic types.

    我们这种mixin表现方式与先前讨论这种功能强大语言特性关联讨论通过泛型类型添加mixin的优缺点

    youdao

  • We'll relate such a formulation of mixins to previous discussions of this powerful language feature, discussing the advantages and disadvantages of adding mixins through generic types.

    我们这种mixin表现方式与先前讨论这种功能强大语言特性关联讨论通过泛型类型添加mixin的优缺点

    youdao

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

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

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