• Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Well, it mostly being already correct is what I meant with Python avoiding multi-line statements.

    In JVM languages, Rust etc., it’s for example popular to use Fluent Interfaces. These also reduce visual clutter and the number of variables in scope (and/or the need for mutability).

    I did not know about enclosing them with parenthesis, but apparently that works, too, as this library shows: https://pypi.org/project/fluentpy/