From a5f22ab39f9b975b5ad7968c715fe937d0f8a98c Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Fri, 29 Aug 2025 23:59:07 +0200 Subject: [PATCH] Update [DRAFT] Future AerScript Versions Ideas --- %5BDRAFT%5D-Future-AerScript-Versions-Ideas.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/%5BDRAFT%5D-Future-AerScript-Versions-Ideas.md b/%5BDRAFT%5D-Future-AerScript-Versions-Ideas.md index 6b7afc6..fbd5173 100644 --- a/%5BDRAFT%5D-Future-AerScript-Versions-Ideas.md +++ b/%5BDRAFT%5D-Future-AerScript-Versions-Ideas.md @@ -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.