3 ms·
You're free to go develop a transpiler that adds the guards/checks you desire to your code. Nothing stops you from building on this starting place. The data wou
by rektide 4y ago
You're free to go develop a transpiler that adds the guards/checks you desire to your code. Nothing stops you from building on this starting place. The data would be there.
JS engines could do the same!
Let's start with the first steps: getting the information.
- asddubs 4y agothe moment they add this to javascript, there will be people out there feeding strings to number-annotated parameters of functions (and so on). and then of course no one is going to want to break existing code. that's why doing this in a way that is not enforced is corrosive to having types in the language in the future.
- rektide 4y agoas others have stated, the answer seems to be to opt in: "use typechecks" or only warn. i don't think anyone would consider turning it on by default everywhere. this seems like an extreme non-issue.