Ignoring extra comma in code


If this won't break something else in the language I think that every expression that uses comma to list multiple items (function/method call, array elements, function/method definition) should allow for an extra comma without giving an error. Therefore the following expressions:



{(x: Int, y: Int) -> x + y}

should do the same as these:



{(x: Int, y: Int,) -> x + y}

Just think of commas as semicolons in css - last one is optional. If this can be done (and I can’t think of a case that would pose a problem) it would considerably simplify automated code generation (not that there aren’t other and better ways to generate code but the simpler the better).


Thanks for your suggestion