Necause languages like Pascal and Modula II or Ada use: var_name : TType; // this is a declaration of a variable named „var_name“ and of type TType.
However in your example I assume either the var, or the „: Foo“ is redundant. Because var is used in Kotline for type interference, if I’m not mistaken. Best Regards privat: -------------------- www.oomentor.de -------------------------- Angelo Schneider OOAD/UML angelo.schnei...@oomentor.de Putlitzstr. 24 Patterns/FrameWorks 76137 Karlsruhe C++/JAVA Mob: +49 172 9873893 Am 09.01.2020 um 04:37 schrieb MG <mg...@arscreat.com>: > These results look great, Daniel G-) > > With regards to nomenclature: What is your definition of megamorphic as > compared to polymorphic ? The web does not seem to be in complete agreement > on these terms - I assume you are referring to the number of call site cache > entries needed (monomorphic: 1, polymorphic: > 1, megamorphic: > cache size) ? > > Cheers, > mg > > PS: Came across some Kotlin code during my web search. Mind still shudders at > seeing the syntax > var result: Foo= calcFooResult() > used in a statically typed language - bloated, hard to read, why are we > seemingly assigning a value to a type... > > > On 08/01/2020 17:26, Daniel.Sun wrote: >> FYI. >> https://github.com/apache/groovy/pull/1135#issuecomment-571961230 >> >> >> >> >> >> ----- >> Apache Groovy committer & PMC member >> Blog: http://blog.sunlan.me >> Twitter: @daniel_sun >> >> -- >> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html >> >