vbsteven
03/15/2023, 7:38 PMval application = Application("myapp", ApplicationFlags.NONE.or(ApplicationFlags.REPLACE))
where I want the signature to read something like
class Application(val name: String, flags: ApplicationFlags)
So the user does not have to go hunt for random constants.kevin.cianfarini
03/15/2023, 7:44 PMvbsteven
03/15/2023, 7:51 PMOptionSet
you proposed in the thread looks interesting.kevin.cianfarini
03/15/2023, 8:06 PMOptionSet
interface and instead just exposing utility functions atop a value class
.vbsteven
03/15/2023, 8:09 PMkevin.cianfarini
03/15/2023, 8:11 PMDp
is a value class.@Immutable
@kotlin.jvm.JvmInline
value class Dp(val value: Float) : Comparable<Dp> {
Dp
(unless it’s referred to as a Comparable<Dp>
)vbsteven
03/15/2023, 8:12 PMkevin.cianfarini
03/15/2023, 8:13 PM