notes
proposal-type-annotations
notes | proposal-type-annotations | |
---|---|---|
9 | 101 | |
585 | 4,093 | |
1.0% | 0.6% | |
7.8 | 4.7 | |
about 7 hours ago | about 2 months ago | |
JavaScript | JavaScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
notes
-
Union, intersection, difference, and more are coming to JavaScript Sets
Has anything changed recently? The proposal has been in stage 3 since November 2022 [1]
[1] https://github.com/tc39/notes/blob/HEAD/meetings/2022-11/nov...
-
The TC-39 just introduced a new stage: stage 2.7
If you're curious about the naming scheme (it now goes 0 -> 1 -> 2 -> 2.7 -> 3 -> 4), then you can read the discussion surrounding the name from the last meeting notes [1].
Also, for a quicker digest, Rob Palmer (from the committee) tweeted about it [2]
[1] https://github.com/tc39/notes/blob/main/meetings/2023-11/nov...
-
JavaScript Type Annotations Proposal Update
Dialog for this update is at https://github.com/tc39/notes/blob/main/meetings/2023-03/mar...
What I would like is a "use: 'typechecked'" at the top of the file indicating that the code has already been checked. This would be accompanied by a new proprosal that defines a standard for what is considered checked (for example checking nullablity in the types) and would allow for browsers to make some optimizations. This could also perhaps reduce the amount of necessary runtime checks such that it would be possible to make it a fully sound typesystem with most of the checks done beforehand.
-
ES Modules Are Terrible
All the meeting notes are recorded here: https://github.com/tc39/notes/tree/main/meetings. You’ll have to do a bit of spelunking in the corresponding agendas and proposal repo to narrow down the exact meetings you’re interested in.
- Proposal withdrawn for JavaScript Function.pipe / flow
- Proposal withdrawn for Function.pipe / flow
-
Deno joins TC39
Here's a list of delegates for TC39, but it doesn't list people by their ECMA member organization.
-
Class fields and private class members are now stage 4, ready for ES2022
This is a good question. I'm not sure I saw the notes of the meeting when this happened, but all the notes are public here: https://github.com/tc39/notes/tree/master/meetings
-
History of JavaScript - How it came into the existence
TC-39 is a group of people who are responsible for the standards. They have meetings every two months with member-appointed delegates and invited experts. You can check the minutes of those meetings here GitHub repository
proposal-type-annotations
-
Bun 1.1
That proposal is not fully compatible with Typescript: https://github.com/tc39/proposal-type-annotations?tab=readme...
-
Go 1.22 Release Notes
They held a meeting a few months ago so it's alive but probably still years away.
https://github.com/tc39/proposal-type-annotations/issues/184
-
[AskJS] Kicking a dead horse - TS vs JS
I particularly like this thread in the TC39 types proposal. TypeScript IS a development trojan horse and locks you into the Microsoft Way of being a JS developer.
- Strong static typing, a hill I'm willing to die on...
-
HTML First – Six principles for building simple, maintainable, web software
Edit: There is a proposal to extend JavaScript with type annotations, which would allow ("a reasonably large subset") of TypeScript to run directly in the browser. Yay!
https://github.com/tc39/proposal-type-annotations
-
Building React Components Using Unions in TypeScript
More importantly, TypeScript typically commits to build things into itself when the proposal in JavaScript reaches Stage 3. The pattern matching proposal in JavaScript is Stage 1, but depends on many other proposals as well that may or may not need to be at Stage 3 as well for it to work. This particular proposal is interested on pattern matching on JavaScript Objects and other primitives, just like Python does with it’s native primitives. These are also dynamic types which helps in some areas, but makes it harder than others. Additionally, the JavaScript type annotations proposal needs to possibly account for this. So it’s going to be awhile. Like many years.
-
Show HN: Conway's Game of Life in TypeScript's type system
this is exactly what I want from the _Types as Comments_ proposal[0] as I think it's the only way that types can feasibly become part of the language. It's hard to imagine how all of the concepts TS introduces via special syntax can be covered otherwise.
[0] https://tc39.es/proposal-type-annotations
-
Why Htmx Does Not Have a Build Step
Crossing my fingers that the proposal for allowing (browser-ignored) type annotations in javascript progresses: https://tc39.es/proposal-type-annotations/
Between that, HTTP2/3 and ES modules many of the downsides for building apps with no compile step are almost completely mitigated.
-
TypeScript Without Transpilation
JSDoc can get you pretty far, but it can be clumsy sometimes. There’s a [TC39 proposal](https://github.com/tc39/proposal-type-annotations) to allow types to live in JS code and be treated as comments (similar with Python types today)
- Do you think typescript will ever have native support on brosers? Or we will have only the JS type annotations?
What are some alternatives?
proposal-class-fields - Orthogonally-informed combination of public and private fields proposals
astexplorer - A web tool to explore the ASTs generated by various parsers.
proposals - Tracking ECMAScript Proposals
Scala.js - Scala.js, the Scala to JavaScript compiler
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
rescript-compiler - The compiler for ReScript.
proposal-function-pipe-flow - A proposal to standardize helper functions for serial function application and function composition.
Carp - A statically typed lisp, without a GC, for real-time applications.
Svelte - Cybernetically enhanced web apps
d2-playground - An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.
esm.sh - A fast, smart, & global CDN for modern(es2015+) web development.
proposal-record-tuple - ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!