DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.55k stars 33 forks source link

Remove final implicit comma in nested arguments, better matching source #1392

Closed edemaine closed 2 months ago

edemaine commented 2 months ago

Currently, nested implicit arguments create an extra implicit comma at the end of the arguments.

I had to fix this for #1391 because type arguments can't have a trailing comma in TypeScript.

This led the way to fixing it for function calls too.