You'll find documentation about what modifiers are supported in the docs http://elixir-lang.org/docs/master/elixir/Kernel.html#sigil_w/2
Definitely a good idea, that's why we can do it :) On Tuesday, May 24, 2016 at 6:21:51 PM UTC-4, Ben Wilson wrote: > > ~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/177b3403-5ec3-4e7b-b0b6-7a7a0259613e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
