• mattie@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Dictionary is a value type so it is stack-allocated. But that value is a pretty thin wrapper around a heap-allocated backing store. I’m not sure how useful it is to think about or even know that detail. I hate doing the cliché thing here, but can I ask why you are asking?