-
Notifications
You must be signed in to change notification settings - Fork 4
CS2 Discussion: Features: ES7 Decorators #74
Comments
I've just run into the same issue when trying to use MobX with coffeescript. +1 It's exactly the type of syntax sugar that fits right into coffee's philosiphy. The issue is that the syntax is already used. The @ symbol is used and so it looks like you're calling a function to coffeescript. I propose we find some other symbol to make a decorator. Maybe the |
If you dig around a bit on closed issues you should see a thread about this
already. Concensus seems to be to do a postprocess with commented
annotations.
…On Mar 9, 2017 5:07 PM, "light24bulbs" ***@***.***> wrote:
I've just run into the same issue when trying to use MobX with
coffeescript.
+1
It's exactly the type of syntax sugar that fits right into coffee's
philosiphy. The issue is that the syntax is already used. The @ symbol is
used and so it looks like you're calling a function to coffeescript. I
propose we find some other symbol to make a decorator. Maybe the ~? Just
needs to be something that won't conflict many peoples legacy code or any
existing features.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABy6x64HTtmwSX2vc3PGXjqL0OiWl0SQks5rkKJvgaJpZM4MWqKk>
.
|
Here: #9 |
Coffeescript6 discuss I believe
…On Mar 9, 2017 5:19 PM, "light24bulbs" ***@***.***> wrote:
Is that in coffeescript6 or in coffeescript?
I think we should at least link it for anyone who finds this thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABy6x14tPcmkvmWUyxzVatrqoTUr5erTks5rkKUXgaJpZM4MWqKk>
.
|
Yeah I linked to it above in an edit. I disagree with the conclusion they reached but we can talk about it there. |
Let’s keep the discussion in the original thread if you don’t mind. Also just because the issue is closed doesn’t at all mean it won’t be reopened; we use open/closed issues to track current priorities. As we run out of higher-priority features, some currently-closed ones might get reopened and worked on. |
Migrated to jashkenas/coffeescript#4967 |
Decorators are an advancing proposal for ES7:
https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841
MobX (an alternative to the Redux state management library used in React apps) uses ES7 decorators to do its best magic. (For the curious, here's a comparison of Redux and MobX.)
Can we add support for decorators in CoffeeScript 2.0?
The text was updated successfully, but these errors were encountered: