3 ms·
> which showed intent - hence easier to grok the surrounding code There was some concern that removing "new" would make it less obvious that an object was bein
by munificent 8y ago
> which showed intent - hence easier to grok the surrounding code
There was some concern that removing "new" would make it less obvious that an object was being constructed. In practice, though, it's been totally fine. The fact that the thing you're invoking is a class (and hence a capitalized name) seems to be sufficient signal that "you're making an object".
Also, several other languages already work this way: Python, Scala, Kotlin, etc.
- monocularvision 8y agoAnd Swift