Avatar
トップレベル関数になったのはスクリプティング用途での儀式を減らしたいとのこと https://forums.swift.org/t/review-3rd-sf-0007-subprocess/78078/58
I prefer the top level run function. I think it is important to look for opportunities to reduce the amount of ceremony required to do simple things. It improves the approachability of the language as a whole. There is always an option to add the module name to the function to disambiguate where needed. The compiler produces a reasonable fix-i...