charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

Postfix operators #49

Closed KCreate closed 8 years ago

KCreate commented 8 years ago

Expressions like this should be possible

1++; # 2

# a == 2
a++; # 3
(a)++; # 4
# a == 4

A postfix operator can be placed after every Term. If the left side as an identifier the result of the postfix expression will be assigned to the identifier in the current scope.

KCreate commented 8 years ago

Duplicate of #59