[swift-evolution] Utilizing arguments without meaningful internal names
jordan_rose at apple.com
Fri Feb 5 20:10:55 CST 2016
> On Feb 5, 2016, at 17:58, Dany St-Amant via swift-evolution <swift-evolution at swift.org> wrote:
>> Le 5 févr. 2016 à 20:18, Jessy Catterwaul via swift-evolution <swift-evolution at swift.org> a écrit :
>>> How do you handle overloading? `let` shadows, while `func` overloads.
>> It does now, but closures can’t currently be overloaded, which doesn’t make sense. You can’t store two overloads in closures that have the same names as those functions. This must end at some point.
>>> Also, what is actually gained by eliminating the keyword marking functions as different from constants?
>> Simplicity. Having both functions and closures in the language is complexity. I doubt it’s needed but haven’t heard otherwise.
>>> So, how many people know how to type ƒ? I sure don’t.
>> There aren’t that many keys on a keyboard and only using them leads to nonsense like $0. Hold option and type F. It’s easier to learn than making any Swift compile.
> And where does one find the option key on standard PC running Linux or Windows (when using for example the IBM Swift Sandbox). It have been a few time I see people suggest using some fancy unicode character easily accessible on my preferred device keyboard but which are nearly impossible to type on typical no Apple devices. Call me old fashion but the standard keywords and symbols provided by the language should be limited to plain ASCII which can be used from any standard QWERTY keyboard without any fancy Apple-ism. I know not everyone use QWERTY; And from limited experience (I switch the mapping on the first swear), I know that it’s a pain to write code on a keyboard like French-Canadian, on which I can never find those dreadful curly-braces or even the slash. I do not want to bring this pain with me (and to others) when playing with Swift on a non-Apple device.
> Sorry for the ranting,
Let's make sure we keep the conversation polite and respectful. I don't think any lines have been crossed yet but I can hear the voices rising. Let's keep it :-).
More information about the swift-evolution