What you show in best case could work as:
alias Guard.Rbac, as: RBI
alias Guard.Rbac.{Cache, RoleBindingIdentification}
That’s because opts are on same level as other aliases.
Alternatively Elixir could support this:
alias Guard.Rbac.{Cache, {RoleBindingIdentification, as: RBI}}
However this looks just ugly and I guess that’s why it would be not supported at all. If you have an interesting idea how to improve that then feel free to create a proposal, but so far I do not see either a use case nor how it could look good at all.
Also keep in mind that even if such ugly-looking feature would be supported then it would be still formatted into multiple lines, so it would look like:
alias ParentName.{
{ChildA, as: A},
ChildB,
{ChildC, as: C}
}
I believe that keeping aliases work as it’s now is best.






















