4 ms·
That would make all JavaScript that has non JSON object literals (most JS code) slower
by daleharvey 7y ago
That would make all JavaScript that has non JSON object literals (most JS code) slower
- pbhjpbhj 7y agoHow much slower? We already established it's far slower parsing js; in most cases JSON parsing would fail - IIRC - on the first character ^[^{] ... so would it be worth being slower by the time it takes to check the first character, and then only JavaScript that started with { would be slower. Which I guess is virtually none. I suppose those sorts of questions are part of what makes language design interesting.