Is there any reason for only a single alias allowed per line?

This is legal:

var w, h = 512, 1024

but this one is not:

alias w, h = 512, 1024

It has to be separated, one per line:

alias w = 512
alias h = 1024

I’m a newbie here and got curious if there is a deeper reason for this?

Could you make a feature request on GH?

Done: [Feature Request] Allowing more than one alias declaration per line · Issue #5102 · modular/modular · GitHub

3 Likes