Hacker News new | past | comments | ask | show | jobs | submit login

> better Kotlin than Kotlin

Kotlin has JVM, Native and JS targets. And as a language it is much better than Haxe, I would be careful about such statements.




Hmm. Did you just make an equal but opposite statement, while cautioning against making just such a statement in the very same sentence?

(I have no opinion on the argument, never having used either language. I just found the rhetoric funny.)


Exactly, haha.


Kotlin/Native is a special snowflake that by being built on an incompatible memory model with the JVM, now has been forced back into the dev board as the amount of issues kept pilling up.

You cannot just pick a random Java library, even if pure logic code, one of the Kotlin FFI selling points and use it with Kotlin/Native, if it wasn't originally written with Kotlin/Native memory model in mind.


I work with Kotlin at my day job but am also active in the Haxe open source community. I really like both languages, and I don't think that Kotlin is objectively better than Haxe.

In practice, there are things about Haxe I miss in Kotlin, but also things about Kotlin I miss in Haxe. Just to name a few examples:

- I'm missing Haxe's pattern matching and macros in Kotlin

- I'm missing Kotlin's level of IDE support and robust null safety (with ?: and ?. operators) in Haxe

(Haxe does have experimental opt-in null safety, but it doesn't seem production-ready yet)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: