Hi!

If you would like to propose features to the language, you need to *argue*
why those changes are beneficial. Changes to existing language features can
cause a huge impact in the community and we need strong reasons for them.

Thanks.


*José Valimwww.plataformatec.com.br
<http://www.plataformatec.com.br/>Founder and Director of R&D*

On Sun, Dec 24, 2017 at 10:59 PM, Juan Jose Lopez Tugores <[email protected]
> wrote:

> For example instead of
>
> defmodule Foo do
>
>     @enforce_keys [:foo1, :foo2]
>
>     defstruct [:foo1, :foo2, :foo3]
>
>  end
>
>
> I write
>
> defmodule Foo do
>
>     @required_keys [:foo1, :foo2]
>
>     @optional_keys [:foo3]
>
>     @enforce_keys @required_keys
>
>     defstruct @required_keys ++ @optional_keys
>
>  end
>
>
> But I think it could better be
>
>
>> defmodule Foo do
>
>     defrequired [:foo1, :foo2]
>
>     defoptional [:foo3]
>
>  end
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/elixir-lang-core/f84f2f1a-e04b-4673-a88b-b35c9f9fa482%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/f84f2f1a-e04b-4673-a88b-b35c9f9fa482%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LOQBw9SmfHHf21Cvmd%2BOjLtS3p0892Of7u-kmUaqxtXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to