3 ms·
Dart's method cascade syntax is still the best I've seen, that's immediately intuitive and unambiguous: let task = NSTask() ..launchPath = "/usr/b
by mythz 10y ago
Dart's method cascade syntax is still the best I've seen, that's immediately intuitive and unambiguous:
let task = NSTask()
..launchPath = "/usr/bin/mdfind"
..standardOutput = pipe
..launch()
..waitUntilExit()
- timjver 10y agoI suppose you could then simply leave out let task = if you don't want to use that object any further.