Post Reply 
User-defined functions in Free42
01-14-2021, 05:02 PM
Post: #38
RE: User-defined functions in Free42
(01-14-2021 02:55 PM)Thomas Okken Wrote:  I'm having trouble imagining functions where the number of inputs and outputs isn't known very early on in the function. Specifying it late seems like more of a hassle to me, not less.

Both ways are equivalent.
It is just a matter of style, prefix vs postfix.

However, I think postfix may be easier to read, and document.
Values to return are almost always right above RTN statement (unless it crashes).

With well documented code, we just read the line above RTN, and know what it is.

...
X<>Y    ; q r q q
RTN 02  ; q r b a
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: User-defined functions in Free42 - Albert Chan - 01-14-2021 05:02 PM



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