The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
newRPL: Making RPL more readable
12-01-2016, 09:08 PM
Post: #1
newRPL: Making RPL more readable
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:

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?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
newRPL: Making RPL more readable - Claudio L. - 12-01-2016 09:08 PM
RE: newRPL: Making RPL more readable - Han - 12-02-2016, 12:39 PM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 07:37 AM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 10:12 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM



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