| ▲ | marcosdumay 4 hours ago | |
The convenience vs. designated initialization in Swift is exactly the same kind of attempt to overload normal language syntax. Outside of that, Swift has only normal OOP constructors, that are something completely different, and almost not a pain at all. Normal constructors are just a control layer on top of memory initialization that lets you write custom rules for it. It becomes necessary when you have protected memory in your objects, because the external code can't just go and set it, but even languages like Python understand it's convenient to have a defined place to set things up. | ||