DEV Community

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

Collapse
 
17cupsofcoffee profile image
Joe Clay

Your latter example (mandatory between items on the same line but optional at the end of a line) is pretty much exactly how CoffeeScript objects and arrays work, so there's definitely precedent for that!

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

Then again, CoffeeScript and its relatives aren't exactly widely considered a pinnacle of good language design. Useful, but not exactly elegant.

Thread Thread
 
17cupsofcoffee profile image
Joe Clay

Yeah, it's precedent, but not necessarily good precedent :p