Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It simplifies generating JSON, since you don't need a special case for the last item

In which language can't you do array.join(",")? You can even do that in Java with one of the myriad of string libraries. I haven't hand-coded joins since (at least) six or seven years.



Join doesn't help to stream to JSON from a database cursor. Unless you buffer the response first which is pretty horrid.


Fair point.




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

Search: