12-01-2016, 09:08 PM
When reading this thread, I started thinking that there must be a way to make RPL look more human and modern without completely changing it.
I'm opening this thread to discuss ideas to achieve this.
I'll throw the first idea to start a discussion:
Declare local variables with infix notation:
LOCAL 'a' obj1
LOCAL 'b' obj2
where << LOCAL 'a' obj >> is simply an alias for:
obj 'a' LSTO
An example:
In a way it simplifies declaring multiple subroutines inside a larger program.
Any other similar ideas?
I'm opening this thread to discuss ideas to achieve this.
I'll throw the first idea to start a discussion:
Declare local variables with infix notation:
LOCAL 'a' obj1
LOCAL 'b' obj2
where << LOCAL 'a' obj >> is simply an alias for:
obj 'a' LSTO
An example:
Code:
<<
LOCAL 'avg'
<< + 2 / >>
LOCAL 'rms'
<< * √ >>
@ MAIN PROGRAM
2 4 avg
2 4 rms
>>
In a way it simplifies declaring multiple subroutines inside a larger program.
Any other similar ideas?