[fpc-other] Google Invents Pascal

Mark Morgan Lloyd markMLl.fpc-other at telemetry.co.uk
Thu May 18 17:20:44 CEST 2017


According to 
http://www.theregister.co.uk/2017/05/17/android_kotlin_java_alternative/ 
a language called Kotlin is now one of the preferred few for Android 
development.

According to https://kotlinlang.org/docs/reference/basic-syntax.html it 
looks like this:

fun maxOf(a: Int, b: Int): Int {
     if (a > b) {
         return a
     } else {
         return b
     }
}

I've got a vague recollection that this is not the first 
recently-defined language which, at least for special cases, puts the 
type after the variable or function name. But apart from bowing to 
dominant usage (braces rather than begin-end and so on) this does appear 
remarkably Pascal-like.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]


More information about the fpc-other mailing list