3 ms·
Member initializer syntax at version 5.1? I thought swift was on par with kotlin and typescript, or at least python in terms of features.
by nurettin 7y ago
Member initializer syntax at version 5.1? I thought swift was on par with kotlin and typescript, or at least python in terms of features.
- Sharlin 7y agoRead again.
- andrewbarba 7y agoIt's specifically around default values. If you use any language long enough you will think, hey it would be nice to have X. Alejandro (in high-school at the time) thought exactly that and implemented it himself - https://github.com/apple/swift-evolution/blob/master/proposals/0242-default-values-memberwise.md https://github.com/apple/swift-evolution/blob/master/proposa... You could almost argue the real feature here is how open the community is to additions like this, and there's no need to wait for people at Apple to do it.
- innagadadavida 7y agoPretty neat and definitely very different from the Go community.