News for hackers. Stuff that matters.
Re:GNU Guile 2.0.9 released by bitwize on Wednesday April 10, 2013 @01:29PM (#5526607)

    for(i=0;i<max;i++) {
       ...
    }
in Scheme becomes:

    (do ((i 0 (+ i 1)))
        ((>= i max))
        ...)
In general:

    for(VAR=INITIALIZER;CONDITION;VAR=INCREMENT)
    {
       BODY
    }
    return RETVAL;
becomes:

    (do ((VAR INITIALIZER INCREMENT))
        ((not CONDITION) RETVAL)
       BODY)
in Scheme.

It's a pretty trivial transformation -- not hard at all. I think these "most brightest" programmers just didn't want to learn the freakin' language.

There are no comments on this comment yet.