On Sunday, 29 July 2018 at 05:32:15 UTC, Ky-Anh Huynh wrote:
Hi,

is it nice to have a trailing comma in variable declaration:

[code]
  bool
    verbose = false,
    download_only = false,
    no_confirm = false,
    show_help = false,
    show_version = false,
    list_ops = false,
    ;
[/code]

As trailing comma is possible (and it's great) for arrays, enum,... I wonder why we don't have this fancy thing for variables declaration.

Thanks for your reading.

This is the syntax sometimes seen with language that don't have trailling comma at all.

bool
       verbose = false
     , download_only = false
     , no_confirm = false
     , show_help = false
     , show_version = false
     , list_ops = false
     ;


Reply via email to