When using ecto-2.0, required fields must be a list of symbols therefore 
the code will look like this:

fields ~w(email password encrypted_password)
required [:email, password]


And in my humble opinion, it would be better if we can write it like:

fields ~w(email password encrypted_password)
required ~s(email password)


I know ~s is used for string right now, but I believe it's better if we can 
follow the Ruby's convention where s is used for symbols and w is q(quoted) 
is used for strings.

Any thought?

-- 
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/8d968fb0-fe3d-4c63-8204-52a84031b09a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to