sirisian / ecmascript-types

ECMAScript Optional Static Typing Proposal http://sirisian.github.io/ecmascript-types/
453 stars 4 forks source link

FAQ and concerns #50

Open sirisian opened 5 years ago

sirisian commented 5 years ago

There's a lot of questions people ask that I can't answer, or I have no idea who to ask. Maybe if I start a list of questions it'll prompt professionals (or people on the V8 team) to supply authoritative answers.

I'll start a list here and update it as I go.

Q. Does operator overloading inherently make all operators slower when implemented in an engine? Basically does the operation of being able to arbitrarily change what + means on an object inherently make all + operations slower? Is this something that depends heavily on the JIT implementation?