News for hackers. Stuff that matters.
Re:$vau: the ultimate abstraction (2010) [pdf] by jhallenworld on Friday November 09, 2018 @03:23PM (#18417637)
Well I had to try this "Man or Boy" test. I do get -67 :-)

    fn A(k, &x1, &x2, &x3, &x4, &x5) {
            fn B() {
                    k = k - 1
                    return A(k, B(), *x1, *x2, *x3, *x4)
            }
            if k <= 0 {
                    return *x4 + *x5
            } {
                    return B()
            }
    }

    print A(10, 1, -1, -1, 1, 0)
Only a few languages can do this without some form of explicit wrappers in the top-level call to A.

There are no comments on this comment yet.