`"Is String a type or a class?". The common answer...
# feed
d
"Is String a type or a class?". The common answer is "Both because every class is a type". It is not really true.
this is also very confusing, it implies that String is not a type… but it is
🧵 1
m
String
is both a name for class (template with actual implementation) and for type
You may be right that it is confusing. I wanted to say that people thinks that class is a type, while it is not.
K 2
👍 1