Why do we need to get rid of new keyword ?
You don't need to. And you should not if you don't see any benefit.
The approach show here seems to be a syntactic sugar.
That's 100% syntactic sugar.
Do this approach increase readability of code ?
Readability is subjective.
You might be confused the first time you see this.
But then, it feels like the code is less noisy and cluttered with useless keyword and types
We're a place where coders share, stay up-to-date and grow their careers.
Why do we need to get rid of
new
keyword ? The approach show here seems to be a syntactic sugar. Do this approach increase readability of code ?Why do we need to get rid of
new
keyword ?You don't need to. And you should not if you don't see any benefit.
The approach show here seems to be a syntactic sugar.
That's 100% syntactic sugar.
Do this approach increase readability of code ?
Readability is subjective.
You might be confused the first time you see this.
But then, it feels like the code is less noisy and cluttered with useless keyword and types