Re: [elixir-core:8371] Re: Runtime typespecs assertion

2018-11-07 Thread Louis Pilfold
Hi Sergiy I'm afraid I don't follow. From what I understand of your proposal the current defguard system meets your needs- what are you looking to add? Cheers, Louis On Wed, 7 Nov 2018 at 18:38 Sergiy Kukunin wrote: > I afraid you missed my point, I might have expressed it poorly. Let's >

Re: [elixir-core:8371] Re: Runtime typespecs assertion

2018-11-07 Thread Sergiy Kukunin
I afraid you missed my point, I might have expressed it poorly. Let's assume I have a simple type: {is_atom(), is_number(), is_binary()}. I want to define a guard to match it. Without reusing I can write a function accepting it: func({x, y, z}) when is_atom(x) and is_number(y) and