It's also backed by JetBrains the IDE-maker.
It's also backed by JetBrains the IDE-maker.
I'm so sick of people spewing JetBrains' marketing points without checking the substance of it.
I tried the backend already, last time I checked it wasn't production ready, like I pointed out in my post. Maybe it is now?
OP mentioned he wanted to "foray into a new language will be something properly compiled like Rust or Swift, not a transpiled language."
Where exactly did my suggestion to try Kotlin go awry?
Things Swift has that Kotlin doesn't: associated types, file-based access control (changing in Swift 3.0), pervasive use of keyword arguments, trailing closures, full pattern matching (Kotlin can only destructure component1...N sequences), reference counting.
Things Kotlin has that Swift doesn't: smart casts, declaring properties directly in the constructor, declaring constructors directly in the class statement, auto-delegation, data classes, singleton objects, implicit parameterizable 'this' (handy for builders & DSLs), garbage collection.
Things they both have: null chaining & defaulting, class extensions, somewhat clumsy first-class method syntax, concise lambda syntax, lambda anaphora ('it' in Kotlin, $0 and $1 in Swift), concise range operators, property descriptors, operator overloading.
Kotlin generally has the feel of a much more pragmatic, industrial language. It's Java without the warts, where the designers took note of the common Java patterns they wrote and provided a lot of syntactic sugar to dramatically improve brevity. Swift feels more academic; its type system is more modern and less ad-hoc, it has polished implementations of many features that academic languages have been trying to get right for years. Both are heavily influenced by their ecosystems; Swift feels like a better Objective-C, and Kotlin feels like a better Java.
And some form of pattern matching via the "when" keyword: https://kotlinlang.org/docs/reference/control-flow.html#when...
"There is a convention that if the last parameter to a function is a function, that parameter can be specified outside of the parentheses."
So you can have normal arguments and specify the last parameter outside like.
val col = "A"
val row = 3
table.update(col, row) {
it * 5
}
You may have confused that with SAM-conversions (?), which are for java-interop: https://kotlinlang.org/docs/reference/java-interop.html#sam-...