~w(foo bar baz)a creates a list of atoms. On Tuesday, May 24, 2016 at 6:13:02 PM UTC-4, [email protected] wrote: > > 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/e48978ef-db93-4e0e-b49e-27ec8a596c54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
