Re: [elixir-core:8546] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread unifiedf
Sven, thank you for your feedback. As you probably have read between my written lines by now, I am new to this ecosystem. If any of you have taken offence to my suggestion, I do apologise. No ill intention, I am just looking at this ecosystem with naive eyes of a newcomer. I am still reading

Re: [elixir-core:8545] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread unifiedf
On Thursday, March 14, 2019 at 9:34:30 PM UTC, Rich Morin wrote: > > > On Mar 14, 2019, at 11:56 AM, Unified Front > wrote: > > > > ... Simplification like this pays off in the long run ... > > Other responses have addressed various aspects of your proposal, > including: > > - maintaining

Re: [elixir-core:8543] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread Sven Gehring
When talking about simplicity, one should not assume that simpler to write (e.g. shorter code) automatically equals simpler to understand. In my opinion, this syntax adds more confusion for a number of reasons: - As Andrea mentioned, including type definitions in the function header very likely

Re: [elixir-core:8542] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread Rich Morin
> On Mar 14, 2019, at 11:56 AM, Unified Front wrote: > > ... Simplification like this pays off in the long run ... Other responses have addressed various aspects of your proposal, including: - maintaining stability in this version of Elixir - ways to get the proposed behavior using a macro -

Re: [elixir-core:8541] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread Unified Front
Hi Andrea, thank you for your response. Understood. It was just a suggestion, which in my humble opinion would get rid of duplication in the source code and eliminate obvious derived maintenance burden thereof. Simplification like this pays off in the long run, but causes obvious disruption

Re: [elixir-core:8540] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread Andrea Leopardi
Hey Fridrik, this might improve the language for some and it might not improve it for others, but that's not the most important point. Introducing features like this (that are supposed to have a noticeable impact) to the language is something that try be careful about. One focus of Elixir is to

Re: [elixir-core:8540] [Proposal] Simplify @spec def and @spec defp for efficiency and maintenance purpose

2019-03-14 Thread floatingfront
Hi Louis Thanks for your reply, but I was more thinking of the benefits of having these changes to the whole ecosystem, tooling and everything, not as a personal flavour as a macro. R. Fridrik. On Wednesday, 13 March 2019 09:24:21 UTC, Louis Pilfold wrote: > > Hi > > As Elixir has reached