• lemtoman@lemmy.mlOP
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    oh yes thats what i mean. Coded in rust, loved this feature, went back to python a bit and became sad that I couldnt do the same. Feels stupid that a variable can be different types depending on the situation, and having a dataclass where just one field is relevant seems too dumb