エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Intersection Types, aka Compound Types
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Intersection Types, aka Compound Types
Sometimes it is necessary to express that the type of an object is a subtype of several other typ... Sometimes it is necessary to express that the type of an object is a subtype of several other types. In Scala this can be expressed with the help of intersection types, (or compound types in Scala 2) which are types that behave like any part of the intersection. Suppose we have two traits Cloneable and Resetable: trait Cloneable extends java.lang.Cloneable { override def clone(): Cloneable = { //

