mixins
美
英 
例句
Mixins can be instantiated with different parent classes depending on the requirements of a particular context.
根據特定上下文的要求,可以用不同的父類實例化mixin。
Mixins are allowed to have parameters, just like components.
混合允許有參數,就像組件一樣。
By incorporating mixins using generic types, we are able to work around many of the key limitations of other formulations of mixins.
通過使用泛型類型合并mixin,我們能解決其它mixin公式的許多關鍵限制。
The reason: both mixins and generic classes can be thought of as functions mapping existing classes to new classes.
原因是:mixin和泛型類都能被認為是將現有類映射到新類的函數。
Nevertheless, it's a very unfortunate restriction because it limits the set of classes eligible to be turned into mixins.
然而它仍是一個非常遺憾的約束,因為它限制了適合于轉換成mixin的類集合。
But it is appealing, almost seductive, to incorporate mixins as part of a generic type system.
但是合并mixin以作為泛型類型系統的一部分很吸引人,幾乎可以說魅力無窮。
Mixins can be viewed as functions mapping existing classes to new subclasses.
mixin可被視為將現有類映射成新子類的函數。
The Mixins annotation allows a list of mixing names to be specified.
Mixins標注允許指定一個混合名字的列表。
Mixins: allow to extract common groups of properties, name them and then include them in selectors.
混合類型:允許開發者抽象出性質的共同點,然后命名并且加入到選擇器中。
When mixins are formulated as generic classes, the problem of accidental overrides is particularly nasty.
當mixin被明確表述為泛型類時,意外覆蓋的問題特別討厭。
With mixins formulated as generic classes, we always have a handle on the parent class, the type parameter that the class extends.
將mixin明確表述為泛型類,我們就始終有父類的句柄,它是該類繼承的類型參數。
However, there are other significant difficulties with formulating mixins as generic types.
但是,將mixin明確表述為泛型類型時有其它一些明顯的困難。
This can mean generating new objects from a runtime definition or based on mixins of existing types or objects.
這可能意味著產生新的物體從一個運行的基礎上定義或mixins現有類型或對象。
Mixins are classes that are parameterized by their parent class.
mixin是那些由它們的父類參數化的類。
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只是這些語言中的一種設計模式,但在語言級別上支持它們應該是毫無問題的。
Static members are associated with instantiations of mixins; there are no "shared" static members of mixins.
靜態成員與mixin的實例化相關聯;沒有“可共享”的mixin靜態成員。
In the case of mixins as generic types, we can apply the same solution.
在mixin作為泛型類型的情況中,我們可以應用同樣的解決方案。
Thus, in Jam, the visitor pattern can't be used with mixins.
因此,在Jam中,訪問者模式不能和mixin一起使用。
This is where a very useful feature comes in: Mixins.
Ruby一個非常有用的特性Mixin可以幫我們完成這方面的工作。