Posts

Showing posts from October, 2024

Stealth

  Changing syntax of programming languages 1. Reversed assignment operator  a + b -> a Allows assignment to flow from left to right like we write in more natural direction 2. Tagging keywords  {while} ... {/while} This allows to easy introduce new keywords into language and to easy find mistakes in control flow of programs 3. Reversed object notation  b@a instead of a.b 4. Reversed function declaration  {fun} int a, b -> f int  and  call  a, b -> f   These two changes allow to combine input and output in one line which is also more natural 5. New for loop syntax {for} 0 -> i++ < n  Code Examples of Stealth language with new syntax Classes and Functions {module} Euclidean         ! comment   {class} GCD         ! greatest common divisor            int a, int b       ...