Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Kotlin seems to be a good deal simpler than Haxe. Haxe seems to be closer to Scala in terms of complexity, while Kotlin really just boils down to a few extra features relative to Java 8.

As far as I know, Kotlin does not have algebreic data types. It does have the nullable type `T?` which is basically Option or Maybe, but you can't define your own.

Haxe's enums are algebreic types, but I don't think it has full support for generalized algebreic data types.



Haxe has GADTs, and I think they're great. http://en.wikipedia.org/wiki/Haxe#Type_system




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

Search: