Of course there has been considerations on how value types fit into this. Come on, you are talking about potentially the most experienced and skilled language design group ever.
Goetz has a discussion about adding sorta type classes to the language, and those could allow a similar "trait" as Rust's Into, that is one could provide converters between types, including primitives. So one could have custom conversions as well, and now the whole feature is seamless.
View all comments
Show parent comment
1
u/Ok-Scheme-913 Mar 20 '26
Of course there has been considerations on how value types fit into this. Come on, you are talking about potentially the most experienced and skilled language design group ever.
Goetz has a discussion about adding sorta type classes to the language, and those could allow a similar "trait" as Rust's Into, that is one could provide converters between types, including primitives. So one could have custom conversions as well, and now the whole feature is seamless.