4 ms·
> syntax is designed to be familiar to people coming from C-like languages like Javascript, Swift, C++, C# and many more Besides Kotlin, other such modern C-li
by vorg 8y ago
> syntax is designed to be familiar to people coming from C-like languages like Javascript, Swift, C++, C# and many more
Besides Kotlin, other such modern C-like languages are Java, Dart, Go, and Groovy. But because Gravity is dynamically typed, a better peer language comparison would be Javascript, Groovy, Dart, and Swift. Each of those languages was designed for a specific platform, i.e:
* Javascript for the web in 1995
* Apache Groovy for the JVM in 2003 (still used for Gradle build scripts)
* Dart for the JVM and for Javascript (and more latterly for Fucshia, Android, and iOS) in 2011
* Swift for iOS in 2014
It's good to see modern dynamically typed languages reject Python's indentation and Ruby's `end` keyword, and settle around curly braces for scoping.
- hajile 8y agoDart has always had optional static types. With 2.0, those be come mandatory. If you are familiar with Swift, then dart would be Swift with a GC rather than ref counting and without tuples (or rather, the reverse would be true as dart is older than Swift).