3 ms·
I think that might be what's needed for a really good programming language. If you want a general-purpose language, you probably don't want something unique and
by lmm 10y ago
I think that might be what's needed for a really good programming language. If you want a general-purpose language, you probably don't want something unique and envelope-pushing - you just want a language that avoids all the mistakes that are so common, that learns from what's gone before. Like buying a table - you usually don't want a radical table that can do something other tables can't, you just want a good solid table.
(I don't think Kotlin is such a language - I think Ceylon might be. I work in Scala at the moment)
- on_and_off 10y agoCould you explain why Ceylon fits the bill while Kotlin does not please ?
- lmm 10y ago* Null-handling in Ceylon falls out naturally from union types. Null handling in Kotlin is a hacky special case with a bunch of specific operators. In particular this means it's impossible to write a method in Kotlin that works with both traditional nullable values and Optionals, which will make interop a lot worse as the Java ecosystem adopts Optionals. * Ceylon has actually listened to the lessons of Scala tuples and built theirs the way ours should have been all along (HLists), making them much easier to abstract over. (NB not actually an issue in Scala in practice - you import Shapeless and then everything works the way it should - but it's nicer to have the right thing by default, as will hopefully be the case in Scala 3.x) * Ceylon has higher-kinded type support done right - multiple parameter lists to avoid Scala's unification issues that lead to the use of "type lambdas" (hopefully fixed in Scala 2.12). Kotlin simply doesn't support higher-kinded types; combined with the lack of union types this means magical annotations with bytecode manipulation where suddenly the code you wrote isn't the code that runs, because just like Java that's the only way to do a lot of things in Kotlin. Async is a special case with language-level dedicated support code. Error handling is done solely through unchecked exceptions which is fine for system failures but not a good way to handle "expected" failures like input validation.
- a-saleh 10y agoIt is interesting that when I considered next language to write a side-project in, I was choosing between Ceylon and Kotlin. In the end I did choose Kotlin. My reasons included: * support in IDEA * focus on java interoperability * nice interop with android but the main thing probably was, that I trust JetBrains that they will support Kotlin in the long term, while I don't think RedHat has any projects depending on the language. So, why would you choose Ceylon?
- lmm 10y agoWell in reality I choose Scala, largely because it has a level of maturity and ecosystem support (both libraries and other tools) that neither Ceylon nor Kotlin can match. But I'd use Ceylon rather than Kotlin because I think it's a much better designed actual language (see cousin post for examples). I personally dislike IDEA (prefer Eclipse), and I don't think Kotlin actually has any better Java or android interop than Ceylon (or Scala), they just make more of a fuss about it in their marketing.
- premium-concern 10y ago> they just make more of a fuss about it in their marketing This succinctly describes many aspects of Kotlin.