Musing on API names for trailing and functional closures

1 · Erica Sadun · Dec. 25, 2018, 9:03 p.m.
When a call returns a value, I almost always use in-line closures. I prefer to surround functional calls with parens. I know my style is not universally popular, as many developers prefer the look of raw braces. It’s not uncommon to see calls like this: numbers.sorted { $0 < $1 }.forEach { print($0) } The […]...