Re: [elixir-core:11134] Re: Proposal: Named Function Arguments

2022-10-28 Thread Paul Schoenfelder
The problem is that in order to implement named function arguments, both the caller and callee must agree on the calling convention (i.e. how arguments are passed, in what order, etc.). In general, it isn't possible to know this in all circumstances, due to things like a callee being implemented

Re: [elixir-core:11134] Re: Proposal: Named Function Arguments

2022-10-28 Thread Jake Wood
So the original proposal here is for introducing a named parameter syntax. The reason I like named parameters is b/c the order of parameters doesn't matter – when they do matter it's easy for refactoring to introduce hard to catch bugs. Pattern matching has been proposed as the idiomatic way to