| dyvil | v0.31.0 |
|---|
The Type system is way more advanced and extensive than in Java. Dyvil introduces a variety of different sorts of types:
- The top type
any - The bottom type
none - The null type:
null - Primitive Types:
boolean,byte,short,char,int,long,float,double - Object Types:
String,Date,Object - Generic Types:
List<int>,List<Option<Date>> - Tuple Types:
(int, String) - Function Types:
(int, int) -> int - Type Variable Types -
T - Wildcard Types:
_,+Number,-String - Reference Types -
int*,String*,any^ - Nullable / Optional Types -
int?,String?,long!,List<String>!