It's called "legacy", not a mistake. If npm would be implemented from scratch now, then yes it would be, but 4 years ago there wasn't any good replacement for it.
npm wasn't initially using strict package.json by the way, it was a javascript under the json extension (see https://github.com/isaacs/npm/issues/408), much more close to what we call json5 now. And I believe it was implemented this way exactly for the reasons mentioned above. But later it was decided that it's bad to use javascript with json extension, and we moved to strict json. I believe it was a wrong move there, but other people might argue with that. On Thursday, October 3, 2013 12:11:37 PM UTC+4, Dmitry Pashkevich wrote: > > So was it a mistake to use JSON for npm package description as it's > intended to be edited by humans too, not just programs? > > > On Thu, Oct 3, 2013 at 2:30 AM, Gagle <[email protected] <javascript:>>wrote: > >> El miércoles, 2 de octubre de 2013 23:20:29 UTC+2, Alex Kocharin escribió: >> >>> But it doesn't seem to be happening soon. >>> >>> >> Never. Extremly slow compared with native json parser. I also agree with >> the OP. The json format is being misused massively by the people. JSON is a >> transport protocol, it was never intended to be used as a storage format. >> Double quotes, no comments, impossible to maintain by humans. >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "nodejs" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/nodejs/NmL7jdeuw0M/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Dmitry Pashkevich > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
