Discussion:
[fpc-other] Google Invents Pascal
n***@z505.com
2017-05-22 02:21:51 UTC
Permalink
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
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

_______________________________________________
fpc-other maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/

Loading...