Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-other / 2017-05

Google Invents Pascal

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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]

Reply by email

Unknown author
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 22 lines
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.

Oh for god's sake... yet another language with similar syntax just like fpc/golang/nimrod, yet another language to learn that does almost exactly the same thing as FPC but with slightly different syntax ;-)

At appears to be stolen from Qomp/fpc/golang definitely, possibly a little Nimrod

Reply by email