Update page 'Future AerScript Versions'

2019-05-16 12:02:33 +02:00
parent 506572b6a2
commit eb2ccbff07

@@ -13,7 +13,11 @@ A right associative \** operator can be added to support exponentiation, along w
printf("2 ** 3 ** 2 = %d\n", 2 ** 3 ** 2); // 512
###
Variables that are declared at method/closure scope could have an implicit type '''auto'''.
Variables that are declared at method/closure scope could have an implicit type ___auto___. An implicitly typed local variable should be strongly typed just as if programmer had declared the type himself, but the compiler determines the type.
auto $var = 'text'; // Implicitly typed string
string $var = 'text' // Explicitly typed string
### Operator overloading
It should be possible to redeclare or overload most of the built-in operators available in AerScript. Thus a programmer could use operators with user-defined object types as well. Overloaded operators are functions with special names the keyword operator followed by the symbol for the operator being defined. similar to any other function, an overloaded operator has a return type and a parameter list.