what's the plan for structs ? do you plan to add t...
# kotlin-native
s
what's the plan for structs ? do you plan to add the word
struct
?
o
this decision need to be made on the level of language design
b
is a
data class
not a
struct
?
o
no, struct as we see it is compound value type
k
Probably very relevant in light of project Valhalla
b
So what does a
data class
signify in K/N?
o
syntax sugar for classes with sane default implementation of
hashCode()
,
equals()
and
toString()
- see https://kotlinlang.org/docs/reference/data-classes.html
b
Aww I was hoping it'd be special. Maybe it's a prime target for a
struct
bridge!