4 ms·
kotlin looks cool. But it's missing some minor things that would make it much more friendly: * no regex literals * a little verbose(instead of [] for arrays,
by pswenson 13y ago
kotlin looks cool. But it's missing some minor things that would make it much more friendly:
* no regex literals
* a little verbose(instead of [] for arrays, it's "Arrays")
* hashes IMO should be JSON
* why doesn't null evaluate to false? God I hate writing if (a != null). I'm much happier in javascript/ruby/groovy land where if can type "if (!a)" or "unless a" or even cooler "raise Exception("a should not be null") unless a"
* why did the world standardize on camelCase instead of snake_case ? the world was wrong about this!
basically a little more javascript and ruby influence would have been good. make the language more "fun" and expressive. There is no equiv of the ||= operator or | for joining arrays, etc
But the big things it's missing are more ecosystem features:
* REPL
* an alternative build system (please don't make anyone use maven!) should be an interpreted scripting language. I'd look at Rake or Gradle for inspiration
* rails like web framework
- Sssnake 13y ago>kotlin looks cool except they should do all kinds of dumb stuff as if it were a scripting language It is a statically typed language designed to try to drag java programmers kicking and screaming into the 1970s. Virtually everything you listed would be a bad change. Just use a language that is actually similar to what you want.
- pswenson 13y agoThis attitude is why java is stuck in the stone ages. Any ideas coming from the dynamically typed world are "dumb".
- Sssnake 13y agoNo, dumb ideas are dumb. It has nothing to do with java. Haskell is statically typed, and it is far more advanced than the languages you are thinking of when you think advanced.
- pswenson 13y agowhich ideas are dumb and why? btw being a jerk doesn't help your case. lesson in civil discourse by example: "I don't think that a ||= operator is a good idea because XXX"
- Sssnake 13y agoTrying to turn a language into a totally and completely different language is dumb. This is not complicated. Civil discourse also requires that you take the time to read and comprehend words before you reply to them with crap.
- pswenson 13y agolook at Rust btw. Statically typed, but heavily influenced by the scripting languages. You should set them straight!
- Sssnake 13y agoI've seen rust. I don't know what you think is so heavily influenced by scripting languages, you'll have to share.
- vorg 13y agoTrouble with all the build systems is they're language based, and the best systems use the worst languages, and vice versa.