• Oro [she/they]@beehaw.org
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    1 year ago

    The whole idea of expressions is very nice, and I can’t imagine using ternary expressions anywhere after learning Rust.

    Also implicit returns ❤️

      • pomodoro_longbreak@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        You get used to it pretty quickly. After a while you wonder how you ever lives without it. Explicit returns feel like ending an if with endif. The end of the conditional’s scope is implied by the end of the block by } or whatever.