DEV Community

Discussion on: What will you change or add in javascript if you have a chance?

 
nombrekeff profile image
Keff

Ohh yeah, I'm aware.. I agree that they are kinda unnecesary, but they make my life a bit easier. I fricking hated constructor functions, but now I kinda enjoy working with "classes". I prefer not to if I can, but sometimes I need to

Couldn't we also consider that high-level programming languages are also just sugar?

Thread Thread
 
nombrekeff profile image
Keff • Edited

One of the things I like about arrow function is that, you don't need to fill your code with the function keyword, reducing the amount of noise and clutter. I really enjoy those kinds of things, where you don't need to write unnecesary keywords. Take Java for example, a big percentage of the code is just public, private, final, static... I don't enjoy that, it's a mess (but they have a place and I can see the value of them).

And although I would not like this change to be implementet, I get your point :P

I'm willing to bet folks will like JS to be even more class heavy

Let's hope it does not go that way, at least not excesively 🤞

I guess everyone is welcome to imagine the ideal JS for them 😄

Of course, that's what I like about this types of posts, they make us talk about this things and respectfully debate them