Swift is like Kotlin
361–364 of 364 posts
Re: Swift is like Kotlin
#362Earlier quoted context omitted.
It's so pretty but that's really disappointing. That puts a damper on even trying it but to be fair it could be a lot worse.
> That puts a damper on even trying it Hyperbole much?
Re: Swift is like Kotlin
#363Earlier quoted context omitted.
> Scala needs to add a runtime when compiling to bytecode This is nonsense? It doesn't need any more "runtime" than Kotlin does. > it is not fully compatible with java as kotlin. This is a lie. (I don't say this lightly, but I've seen it too often from too many kotlin advocates for it to be an innocent mistake)
> Scala needs to add a runtime when compiling to bytecode Last time I checked you needed like 500kb of libraries for any scala program compiled to Android. Kotlin is a few kb. Kotlin is a small addition to the java API, Scala needs much more things. > it is not fully compatible with java as kotlin. As far as I know, the way scala treats types and functions make it that sometimes you cannot call scala code from java.…
30kb for Scala is the figure elsewhere in this thread and that sounds a lot more in line with my experience. Note that you never have to use e.g. Scala collections if you don't want to (and thanks to typeclasses you can write elegant code that works with both Scala collections and Java ones, so you can reuse libraries across both).
> As far as I know, the way scala treats types and functions make it that sometimes you cannot call scala code from java. Well, you can most times but requieres a lot of wrappers. This doesn't happen in kotlin.
Nope. There's no difference, just kotlin propaganda.
Re: Swift is like Kotlin
#364I don't mind if this tool prohibits a few features (pattern-matching in Swift, say), even if it's considered idiomatic, because not having to maintain another codebase saves more than enough productivity to make it worth it.
Does such a tool exist?