12 ms·
new keyword is out of fashion? Why?
by tobyhinloopen 2y ago
new keyword is out of fashion? Why?
- SwiftyBug 2y agoI didn't know about that either. I find the new keyword useful as it instantly lets me know that I can expect the left-hand operator of the expression to be an object of a class, whereas cont foo = bar("value") doesn't say much about what foo is.