There were several items on the agenda, this post focuses on feature proposals and their progress from the meeting that was held between March 28th-31st, 2022.
Type Annotations: Enable developers to add type annotations.
Function once: Standardize
oncefunction in the language core.
- Decorator metadata: Decorators can associate metadata with the value that is being decorated. (P.S: The repo shall be updated with content.)
RegExp set notation + properties of strings: extend the syntax for character classes to add support for set difference/subtraction, set intersection, and nested character classes.
Change array by copy: Provides additional methods on
TypedArray.prototypeto enable changes on the array by returning a new copy of it with the change.
Top comments (3)
Disappointed not to see Record & Tuple advanced, that's my most anticipated proposal at the moment. Can't wait for comparison-by-value of complex objects!
Pattern matching didn't get to accepted for stage 2? ☹️
Yeah, fingers-cross for future meetings on that one! If it's of any interest I wrote a pattern-matching library after initially learning about the TC39 proposal, trying to shoe-horn it into looking a little like the spec with varying degrees of success.