I just read carefully what's new in 1.7.0 and afte...
# language-proposals
e
I just read carefully what's new in 1.7.0 and after seeing "Allow implementation by delegation to an inlined value of an inline class", I wonder if it would be possible to do the same for (abstract) classes. In this way, unsigned numbers could extend the abstract class
Number
Copy code
@JvmInline
public value class UInt @PublishedApi internal constructor(@PublishedApi internal val data: Int) : Comparable<UInt>, Number by data
and I'd be super happy because I don't have to create tons of additional and redundant constructors and methods specifically for every single unsigned (in glm)
e
We can do it in the future. We’ll need to introduce a concept of
abstract value class
and make Number one of them.
❤️ 1
e
is there a ticket to follow? If no, would you like me to create one?