News for hackers. Stuff that matters.
Re:PEP 308 and why I still hate Python by uiri on Thursday March 09, 2017 @09:51PM (#13835936)
I think that Scala uses semicolon terminated lines so you would write something like:

    foo = baz
        .list()
        .filter{ bar => condition(bar) }
        .map(transform(_))
        .toList;
Re:PEP 308 and why I still hate Python by djsumdog on Thursday March 09, 2017 @10:57PM (#13836253)
Scala doesn't require the semi-colon at the very end, but it does allow for them if you really want two statements on the same line.

Edit: and yes, that line separation works fine, both compiled and in the REPL.