--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/c8c25a3e-e514-4501-b2a4-0d4740df859c%40googlegroups.com.
V8's job is to implement JavaScript (aka ECMAScript) as specified.
To get involved with future ECMAScript specifications, TC39 is the place to go. Even if all V8 contributors agreed to change some feature, we couldn't just implement something that contradicts the spec.
Note that it's relatively easy to come up with things one would do differently if one were to design JavaScript from scratch; it is much more difficult to change anything in the language that already exists because of backwards compatibility: we wouldn't want to break existing, previously working code (which might be unmaintained, or whose maintainers don't have time or willingness to spend time updating their code just because someone thought it would be an improvement if the language's semantics changed). So you're left with adding new things, but adding something new never "fixes" something else that's already there -- for example, just because === is useful doesn't stop people from complaining about ==.
Changing JSON (even just additively) is even more difficult than changing JavaScript itself, because JSON is used so ubiquitously even in non-JavaScript scenarios. For example, that's the reason why JavaScript BigInts are not directly representable in JSON.
On Tue, Nov 5, 2019 at 8:18 AM Thomas Güttler <guet...@gmail.com> wrote:
--Coming from Python I am very impressed by v8.But there is one issue ... the language :-)I guess you all know several aspects of JavaScript,which you would never do like this if you could start from scratch.How would you improve JS and JSON if you could?I started a little github project to gather these ideas:I don't want to work-around (base64 encodebinary data) and wrap (like Typescript) any more.Regards,Thomas Güttler
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-...@googlegroups.com.
To get involved with future ECMAScript specifications, TC39 is the place to go. Even if all V8 contributors agreed to change some feature, we couldn't just implement something that contradicts the spec.Yes, you can't? Even if you preserve backward compatibility? Why not add features which can be used by all devswho are sure their code only runs on v8?
Note that it's relatively easy to come up with things one would do differently if one were to design JavaScript from scratch; it is much more difficult to change anything in the language that already exists because of backwards compatibility: we wouldn't want to break existing, previously working code (which might be unmaintained, or whose maintainers don't have time or willingness to spend time updating their code just because someone thought it would be an improvement if the language's semantics changed). So you're left with adding new things, but adding something new never "fixes" something else that's already there -- for example, just because === is useful doesn't stop people from complaining about ==.Yes, you are right. Nevertheless I think there a ways to improve the core language.
Changing JSON (even just additively) is even more difficult than changing JavaScript itself, because JSON is used so ubiquitously even in non-JavaScript scenarios. For example, that's the reason why JavaScript BigInts are not directly representable in JSON.Thank you for this hint. BigInt in JSON seems to be supported by python:I guess this is a JS issue, not a JSON issue. But I am unsure (have not read the specs in detail).
My current goal is to gather ideas what could be improved in JS and JSON.I am particularily interested in things which can't be fixed by wrappers like TypeScript.After writing, someone created the first issue here: https://github.com/guettli/lets-fix-js/issuesI hope more devs still believe that the future can be influenced.