News for hackers. Stuff that matters.
Re:Swift 5.0 release process by phreack on Tuesday September 25, 2018 @05:35PM (#18070695)
Then you ought to try Kotlin! It's a lot like Swift but with great libs and tooling.
Re:Swift 5.0 release process by bsaul on Tuesday September 25, 2018 @05:41PM (#18070741)
Except kotlin doesn't have anything close to swift regarding enums + switch (like : enum with associated values of various arity, and a switch that makes sure you're handling all the cases), nor regarding null safety.

And, it still has java underneath, which means everytime you're using a java lib, you have absolutely no idea what the null safety is going to be underneath (which is also the case with swift and objc libs, but which diminishes the attractivness of using the java libs ecosystem)

EDIT: also, value-based programming is highly encouraged by the full support for structs, either mutable or immutable. That's also a huge plus for safety against race conditions.

Re:Swift 5.0 release process by dualscyther on Tuesday September 25, 2018 @06:02PM (#18070907)
Kotlin has sealed classes (enums), when expressions (switch checking) and absolutely does have null safety. It also reinforces null safety when using Java libraries if they have nullability annotations.
Re:Swift 5.0 release process by saagarjha on Tuesday September 25, 2018 @05:48PM (#18070800)
Kotlin might look like Swift on the surface, but under that they're very different in how they're designed.
Re:Swift 5.0 release process by millstone on Tuesday September 25, 2018 @08:55PM (#18071815)
Surely the question of using Kotlin is dominated by whether or not you can tolerate the JVM.
Re:Swift 5.0 release process by singularity2001 on Wednesday September 26, 2018 @03:42AM (#18073635)
you can compile to native with kotlin-native but compilation times are even more abysmal than the jvm kotlin.
Re:Swift 5.0 release process by izacus on Wednesday September 26, 2018 @04:12AM (#18073826)
What difference does that make?