Update [DRAFT] Future AerScript Versions Ideas

2025-08-29 23:59:07 +02:00
committed by CodingWorkshop Signing Team
parent 74dadbcaa2
commit a5f22ab39f

@@ -6,12 +6,6 @@ This document describes an ideas for future versions of __Aer__ language specifi
* Variadic methods
* Pointers support
### Exponentiation Operator
A right associative \** operator can be added to support exponentiation, along with a \**= shorthand assignment operator.
printf("2 ** 3 = %d\n", 2 ** 3); // 8
printf("2 ** 3 ** 2 = %d\n", 2 ** 3 ** 2); // 512
### 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.