Post Reply 
newRPL: Named subroutines proposal
10-12-2015, 02:51 PM
Post: #1
newRPL: Named subroutines proposal
Here's another idea for open discussion:
How about having a syntax for named subroutines?
For example, it could be similar to a tagged program:

Code:

<<
      @ LOCAL SUBROUTINE DECLARATION
      :ADDTWO:<< 2 + >>

      @ AND HERE GOES THE MAIN PROGRAM
      1234 ADDTWO
>>

The syntax would be compiled in the same way as:

:myTAG:<< ... >> ---> << ... >> 'myTAG' LSTO

so it would create a local variable with the subroutine ready to be executed.
It's not revolutionary but can make code more readable.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
newRPL: Named subroutines proposal - Claudio L. - 10-12-2015 02:51 PM



User(s) browsing this thread: 1 Guest(s)