elixir - Alias multiple names in the same line -


i need alias several models in same file , it's taking lot of visible space in file when doing usual:

alias project.model1 alias project.model2 ... alias project.modeln 

i looked docs , don't think it's possible this:

alias (project.model1, project.model2,...,project.modeln) 

do need this:

alias project.model1 alias project.model2 ... alias project.modeln 

or there alternative?

you can use curly braces that:

alias project.{model1,model2,model3} 

see http://elixir-lang.org/getting-started/alias-require-and-import.html#multi-aliasimportrequireuse


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -