4 ms·
To say that Swift is "nowhere near as simple" as Javascript or Kotlin is a very strange opinion to me, and I have experience with all 3. Simple as in syntax, m
by aplummer 6y ago
To say that Swift is "nowhere near as simple" as Javascript or Kotlin is a very strange opinion to me, and I have experience with all 3.
Simple as in syntax, memory management, or in what regard? I can't think of a single example where Swift is not equivalent or better. Do you have the same criticism of Scala?
- ljm 6y agoI do. Scala is insanely complicated once you inherit a codebase full of implicits and custom operators.
- The_rationalist 6y agoSwift has no traced garbage collector which means you cannot represent circular data structure/references. Also swift support for interfaces (protocol) is sub-par with today standards
- andrekandre 6y ago> Also swift support for interfaces (protocol) is sub-par with today standards interesting, what could be added/changed to make it better?
- The_rationalist 6y agoNo support for default implementation methods. No support for generics in protocol. There might be workarounds but for a newcomer, this is a red flag of reinventing a basic and universal construct (interfaces) in a sub-par one, this show a dangerous mentality from the swift vm devs, what else did they wrongfully reinvent in a sub-par way?
- liuliu 6y agoThere is support for default implementation method in protocol for a while now. Generics are supported through associated types.
- aplummer 6y agoAs the other commenter pointed out, default implementations (with genetic constraints!) are supported, they actually my favourite swift feature.