3 ms·
Light syntax, algebraic datatypes, type parameters, very solid enumeration, the whole ObjC library ecosystem, semi-decent (compared to Haskell/OCaml et. al) pat
by omeid2 8y ago
Light syntax, algebraic datatypes, type parameters, very solid enumeration, the whole ObjC library ecosystem, semi-decent (compared to Haskell/OCaml et. al) pattern matching, immutable and mutable data structures (Array vs ArraySlice for example).
- skohan 8y agoDon't forget the whole C library ecosystem, which IMO is much more useful.
- saagarjha 8y agoThis can be somewhat annoying to work with in Swift, though it’s gotten better recently.
- skohan 8y agoIt's not perfect, but it's loads better than using something like JNI.
- saagarjha 8y agoYeah, I can see it being a whole lot worse ;)
- pjmlp 8y agoJNI was made that way on purpose, because Sun wanted to discourage native code, as Mark Reinhold already mentioned a few times on Java conferences. Panama will thankfully fix that. https://jdk.java.net/panama/ https://jdk.java.net/panama/ Just don't expect it to ever be supported on Android. But they surely will, https://en.wikipedia.org/wiki/List_of_Java_virtual_machines#Proprietary_implementations https://en.wikipedia.org/wiki/List_of_Java_virtual_machines#...