moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Why doesn't StringResource implement StringDesc

Open dalewking opened this issue 6 months ago • 0 comments
trafficstars

I understand why StringDesc exists because you want to have localizable text and don't want to bind it to one particular source of that text. And actually the lack of such a type is a pain with Compose resources.

But when having to do something like MR.strings.fooString.desc() for the umpteenth time to convert it into a StringDesc, it occurs to me that it would be very convenient for StringResouce to implement StringDesc and I cannot see any reason why it shouldn't

dalewking avatar Apr 27 '25 16:04 dalewking