Hacker News new | past | comments | ask | show | jobs | submit login

A general offtopic comment, but something that confused me when I was looking at the github issues and docs for the spread operator.

I've noticed that `...` is frequently used to denote that there's some code that's omitted. However with the spread operator being added (and being `...` in other languages) and "we also felt like it might be an operator we might want to use in the future for other language features" it's a bit confusing at a glance whether that's new syntax or just a shorthand. And it makes searching difficult.

I'm not sure what to replace it with, possibly a comment would be clearer: `/* code here */` or at least `/* ... */`.

P.S. Collection expressions are an awesome new addition!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: