Skip navigation
Decorators are coming to JAVAscript
0:00 / 0:39

Decorators are coming to JAVAscript

Sam Meech Ward

@Meech_Ward4.9K followers

Visit on X
1,379 likesDownloadOriginal post

295,223 views

Decorators are coming to JAVAscript

37 Comments

Comments from the original post on X (Twitter)

  • Dreams of Code's profile picture

    @dreamsofcode_io

    Finally living up to the Java standard

    75 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

    Putting the Java back in JavaScript

    48 likes

  • Dreams of Code's profile picture

    @dreamsofcode_io

    It’s about time someone did it.

    5 likes

  • Noah's profile picture

    @itsnoahd

    I feel as though we dont need this

    47 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

    You are smart

    5 likes

  • Seb ⚛️ ThisWeekInReact.com's profile picture

    @sebastienlorber

    This is a bit misleading The proposal has existed for years already, progresses slowly, and only covers classes TC39 may actually downgrade the class Decorators proposal in the current meeting 😅 Stage 3 ➡️ stage 2.7

    36 likes

  • PATRYK's profile picture

    @__cski

    I hate decorators, hope they don’t become widely adapted.

    7 likes

  • Shreyash's profile picture

    @WebDevCaptain

    I guess Nobody is writing new code in JS, it's all TS compiled to JS, so this will mostly be used in tooling so that no transpilation is needed for this feature now.

    7 likes

  • Jon Klaric's profile picture

    @complex_maths

    Python bros rejoice

    3 likes

  • Theo Ephraim 🧙‍♂️'s profile picture

    @theozero

    How do you feel about decorators in your .env 🧙‍♂️✨

    3 likes

  • Mr.I don't know 😶's profile picture

    @singhijohn89

    Is it native? I remember I used it years ago.

    3 likes

  • Sam Meech Ward's profile picture

    @Meech_Ward

    almost native to js:

    14 likes

  • Eli (ナイス・イーライ)'s profile picture

    @niceEli1

    We need them on normal functions too though, not just class methods

    2 likes

  • M's profile picture

    @MattIzKapsalon

    This is nothing new and has been a topic since the late 2010s. It's been in Typescript since like 2015 even.. I'll believe it when I see it when it hits regular JavaScript. I love the feature but it's not part of JS yet

    2 likes

  • nori's profile picture

    @Skuiggly

    still dont understand the point of this syntactic sugar. just compose functions and bind the composition to a new variable? is there a class or oo reason for why you cant just do that with methods?

    2 likes

  • Fluffy Plum's profile picture

    @_aprillicious

    Can’t wait to recreate the monster with dozens of decorators.

    1 like

  • ST's profile picture

    @malfunkt1on

    I had to work on a codebase where the original author thought the same and decorators were littered throughout codebase. It was a hot babel transpiled mess that I spent months untangling. That was 4 years ago. Don’t use unreleased features.

    1 like

  • Nando Ollé 🇧🇷's profile picture

    @nandoolle

    @samsantosb “how to do the log monad in the most convoluted way possible”

    1 like

  • Kamenskikh Dmitriy's profile picture

    @m1nd_killer

    0 classes usage in last 4 years, tho 🙃

    1 like

  • Javid's profile picture

    @javidvalgix

    @nestframework what you think about that?

    1 like