Are there any programming languages with the same syntax as rust (or similar)?

  • CameronDev
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

    Gleam is very similar syntactically. Never used it, so can’t say anything more about it.

  • sabin@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    I take it you’re not a fan of the borrow rules?

    Would you rather manage your memory yourself, or would you rather use a language with a runtime?

    Those are your only 2 remaining options for managing memory if you exclude rust-like reference constraints.

  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    Swift is pretty close. I’ve been trying it out recently after writing years of Rust and it’s been great so far (and pretty much completely eliminates the big tooling complaints I have about Rust…).