# New Decorators for JS Proposal (Again)

**URL:** <https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165>\
**Category:** web dev\
**Created:** [September 13, 2020, 3:57pm UTC](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165 "2020-09-13T15:57:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [September 13, 2020, 3:57pm UTC](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165/1 "2020-09-13T15:57:55Z")

</div>

The [proposal for decorators in JavaScript](https://github.com/tc39/proposal-decorators) has been updated… again. This will mark, if my counting is correct, the 4th major revision of this specification. If anyone is curious about the previous 3 iterations, I have a summary about them here: [A Brief History of Decorators in JavaScript](https://senocular.github.io/articles/js_history_of_decorators.html).

This new iteration is “based on elements from all past proposals”. While that may sound good at first, possibly meaning taking all the best bits of the past versions and putting them together in one big happy package, I instead think what we’re seeing is more compromises being made to allow for the simplicity of earlier versions to work better with the static nature of the most recent.

For example an `@enumerable` decorator which would make a member visible during enumeration (and happens to be the example I use for the old iterations in the _Brief History_ link above 😜 ) is no longer possible.

```javascript
class MyClass {

    @enumerable // can't do now
    exposed () {}
}

```

The last version of the spec was at stage 2 of the proposal process (of 4). Now its marked as up for discussion at the next TC39 meeting happening later this month (September 21st - 24th).

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [September 16, 2020, 12:34am UTC](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165/2 "2020-09-16T00:34:30Z")

</div>

I saw your fork of it in passing. What are you up to?

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [September 16, 2020, 2:22am UTC](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165/3 "2020-09-16T02:22:10Z")

</div>

> [@krilnon](#):
>
> I saw your fork of it in passing.

That was just a code typo. Turns out there was another PR open that fixed it too (though I was able to slip mine in first 😋)
