Walkthrough of an RPL program for an RPN programmer
|
08-20-2018, 01:09 PM
Post: #17
|
|||
|
|||
RE: Walkthrough of an RPL program for an RPN programmer
(08-19-2018 07:02 PM)Albert Chan Wrote: Wait a second. I think the easiest way to understand it (at least for me) is as an unnamed (lambda) function arguments declaration. -> x y z << ... >> is equivalent to: function(x,y,z) { ... } and it does the same thing, takes "external" values (from the stack), assigns them local names then executes what's in scope. Defining locals out of the scope wouldn't make sense, but arguments on the other hand, are usually declared out of the scope. And this is actually consistent with using an algebraic object as the scope, more like a mathematical function declaration: f(x,y,z) '...' In my RPL head this is how I "see" it. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)