DEV Community

Discussion on: Future Javascript: Records and Tuples

Collapse
 
petsel profile image
Peter Seliger • Edited

The most obvious reason is to be able to pass records and tuples directly to functions as literals. Thus, in order to let the engine know how to handle such data, it needs its own syntax. Just another variable keyword doesn't cover this in future very common use case.