News for hackers. Stuff that matters.
Re:Rust for JavaScript Developers – Functions and Control Flow by JimDabell on Monday July 06, 2020 @04:13AM (#23745731)
Yes, it also makes the larger example somewhat readable:

    func calculate_tax(income):
        return 0 if income < 10 else 20 if income < 50 else 50

There are no comments on this comment yet.