I love the internal/external labeling. With a little thought it can make for code that reads more nicely than is possible otherwise.
const hello = ({ for: person }) => `Hello ${person}`
hello({ for: "Dorian" })
'Hello Dorian'e.g.
const user = {id: "123"};
const { id } = user; // This extracts the `id` field
const { id: userId } = user; // This also extracts the `id` field, but renames it to userId
console.log(userId)I’m glad they found a nice way to do it in Swift.