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

2019-03-13 Thread unifiedf
Instead of doing this: defmodule LousyCalculator do @spec add(number, number) :: {number, String.t} def add(x, y), do: {x + y, "You need a calculator to do that?!"} @spec multiply(number, number) :: {number, String.t} def multiply(x, y), do: {x * y, "Jeez, come on!"} end How about this

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 sta

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 up

Re: [elixir-core:8587] Re: [proposal] Tree-Sitter grammar parser for Elixir

2019-04-03 Thread unifiedf
Hi Rich I am new to this whole ecosystem, and don't use BBEdit, but regarding development tools, have you had a look at CodeRunner and their language setup: They use textmate language grammar which seems to be regular expression based https://macromates.com/manual/en/language_grammars This is