0 Members and 2 Guests are viewing this topic.
Plus, adding in your own spaces is something I find messy
QuotePlus, adding in your own spaces is something I find messy Really? I think it's great unless you're trying to indent all of your if statements and loops were there's like thirteen nested layers
Well, I like to think of it as being a last equation -> outside world notation rather than a give equation notation.
What I mean is that I think of returning values in Axe in a more functional way, so that the last expression is the overall output value for the entire function. That way, I only use Return for ending the definition ending.
sub(DD, A, "HELLO", C, 5)
A subroutine is called like:Code: [Select]sub(DD, A, "HELLO", C, 5)In this example, A is r1, "HELLO" is r2, C is r3, 5 is r4.I once needed more arguments...
(ADD8(1,2,3,4,5,6))(7,8)Lbl ADD8 r1+r2+r3+r4+r5+r6->r6 λ(r6+r1+r2)Return