• Dhs92@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    Not really related to the pointer thing, but Rust also has pattern matching based on Enums, as they’re actually sum-types and not just numbers