by exceptione · 9y ago · 0 comments
I bet on Ceylon, but somehow people preferred Kotlin.
14. Apr 2011, 01:44 CET Gavin King | gavin.king(AT)gmail.com
> 1. 'variable' keyword is to long use var instead
We've so far avoided abbreviations. In practice the IDE will
type this annotation name for me.
I don't want a language designed to require an IDE – if the language is so cumbersome that you need a tool to write it for you, then you might as well just use Java. With Kotlin, I can write in Emacs if I feel like it, since being concise is one of their explicit design goals.(Ironic, I guess, that the language developed by an IDE vendor is the better one to use without an IDE.)
Edit: To elaborate, the Ceylon docs say[2] that "one of the goals of the language is for most code to be immediately readable to people who aren't Ceylon programmers, and who haven't studied the syntax of the language."
I think this is a very misguided goal. No programmer is going to be confused about what "var" means, so making everyone type "variable" gains you nothing. And at the same time, that very same introduction page has plenty of syntax that you won't understand without studying it first, so it still wouldn't achieve their aim, even if those concessions to verbosity had somehow helped.
[1] http://in.relation.to/2011/04/13/ceylon/
[2] https://www.ceylon-lang.org/documentation/current/introducti...
"variable" is easily distinguished from "value" in Ceylon, whereas "var" and "val" are easily confused in Kotlin, being only different by a single letter "r" and "l" -- which even sound the same in some East Asian languages.
When it comes to Ceylon, they weren't going for easily distinguished, they were going for unabbreviated (see earlier link) - the rest of the language follows the same pattern.
Anyway, I'd rather take this minor risk of confusion than a language I can barely write without auto-completion. It hasn't been a big problem for me in practice. And if you do use an IDE, it will use syntax highlighting to distinguish var and val.