First look: adding type annotations to JavaScript

The ECMAScript proposal “Types as comments” (by Gil Tayar, Daniel Rosenwasser, Romulo Cintra, Rob Palmer, and others) is about adding type annotations to JavaScript (there is also an accompanying blog post).
Such type annotations would look similar to …


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer

The ECMAScript proposal “Types as comments” (by Gil Tayar, Daniel Rosenwasser, Romulo Cintra, Rob Palmer, and others) is about adding type annotations to JavaScript (there is also an accompanying blog post).

Such type annotations would look similar to TypeScript’s and Flow’s annotations and are completely ignored at runtime.

In this blog post, I briefly explain how the proposed type annotations would work and then describe what I think about them.

[Read rest of post]


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer


Print Share Comment Cite Upload Translate Updates
APA

Dr. Axel Rauschmayer | Sciencx (2022-03-09T00:00:00+00:00) First look: adding type annotations to JavaScript. Retrieved from https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/

MLA
" » First look: adding type annotations to JavaScript." Dr. Axel Rauschmayer | Sciencx - Wednesday March 9, 2022, https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/
HARVARD
Dr. Axel Rauschmayer | Sciencx Wednesday March 9, 2022 » First look: adding type annotations to JavaScript., viewed ,<https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/>
VANCOUVER
Dr. Axel Rauschmayer | Sciencx - » First look: adding type annotations to JavaScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/
CHICAGO
" » First look: adding type annotations to JavaScript." Dr. Axel Rauschmayer | Sciencx - Accessed . https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/
IEEE
" » First look: adding type annotations to JavaScript." Dr. Axel Rauschmayer | Sciencx [Online]. Available: https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/. [Accessed: ]
rf:citation
» First look: adding type annotations to JavaScript | Dr. Axel Rauschmayer | Sciencx | https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.