Thread
#compose
    Tash

    Tash

    1 year ago
    Do inline/value classes need to be marked as
    @Immutable
    when they wrap primitives, or is that implied?
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Nothing needs to be annotated with stability annotations for correctness, they’re basically just optimization hints. But I think the compose compiler should be able to infer stability for value classes.
    Tash

    Tash

    1 year ago
    Great, thanks! Yeah, meant more along the lines of if one were to mark a regular data class as
    @Immutable
    , could that be omitted once converted to an inline value class.