DEV Community

Discussion on: Help design a language: What about tuples without commas?

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

Definitely, a trailing comma is allowed. Probably the first thing the parser did! :)

var items = [
  a,
  b,
  c,
]

It's much diff friendlier, keeping those git PRs from touching lines they don't actually modify.