Comment

Comment by melling

You no longer need to use a return keyword for single expressions:

    func add(_ x:Int, _ y:Int) -> Int { x + y }

    let z = add(2,2)

Might not seem big, but it's nice to removed unneeded boilerplate.
parent melling 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton