cedric
11/09/2017, 6:46 AMThe Box is a class, while Box<Int>, Box<A>, Box<List<String>> are types generated by generic class Box
Box
is not a class, it's a type constructor. Box<Int>
is a class. Also, types are usually the global name used to denote a structure, e.g. an interface, a class, a trait, etc... I feel you made up your own meaning for these terms in the sentence i quoted.voddan
11/09/2017, 7:46 AMBox<Int>
is a class? In C++ I would totally agree with you (Box<T>
is a template there), but on JVM a class is something that has a class object (that thing that contains static fields and the method table), so Box
must be a class, and Box<Int>
is a compile-time type on top of that classmarcinmoskala
11/09/2017, 9:01 AMBox
xD Box
to generic class, and Box<Integer>
is generic type.voddan
11/09/2017, 4:07 PMit is correctWhich point of view do you support?
marcinmoskala
11/10/2017, 6:44 AM