Currently module attributes require explicit syntax to be passed. For example:
``` @foobar [:a, :b, c: true] ``` It might be cleaner if we could get implied lists, keyword lists: ``` @foobar :a, :b, c: true ``` This comes into play when using module attributes for functionality purposes rather than just value storage. For example, with ecto_fixtures I am working on an API relying upon the test module attributes: ``` @fixtures :user_1, :user_2, :user_3 @serialize only: [:user_1] ``` I suspect would be more idiomatic than ``` @fixtures [:user_1, :user_2, :user_3] @serialize [only: [:user_1]] ``` If there is a desire for this I can handle implementation. I would just need to be pointed in the right direction. (I suspect starting with the tokenizer) -- 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/f4fd785e-ab39-40b6-855d-adc2602988ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
