[swift-evolution] Allow trailing comma in guard, if-let, et al

Rick Mann rmann at latencyzero.com
Wed Aug 17 18:13:36 CDT 2016


Is there any reason Swift can't allow a trailing comma in constructs like this:

guard
    let a = ...,
    let b = ...,
    let c = ...,
else
{
}

doing so makes it a bit easier to rearrange lines, and is similar to the trailing comma allowed inside array and dictionary definitions:

let a = [ 1, 2, 3, ]

TIA,

-- 
Rick Mann
rmann at latencyzero.com




More information about the swift-evolution mailing list