Use expression-bodied functions

Expression-bodied functions can be used when the body is just a return statement.

Bad Code

function isValid(string username) returns boolean {
    return matchesCrieteria(username) && isAvailable(username);
}

Good Code

function isValid(string username) returns boolean 
    => matchesCrieteria(username) && isAvailable(username);

See Also: