Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SICP in Clojure

Name: Anonymous 2009-10-24 17:59

http://sicpinclojure.com/

Personally, I think this is a wonderful idea. SICP always needed more Java.

Name: Anonymous 2009-10-25 6:44

>>2
template <class Number> Number abs(Number x)
{
   if (x > 0)
       return x;
   else if (x == 0)
       return 0;
   else
       return -x;
}


...This programmer has not reached satori. I can't even properly express this in Sepples, but at the VERY least, the example should read:

template <class Number> Number abs(Number x) {
    if (x > 0)
        return x;
    if (x == 0)
        return 0;
    return -x;
}

Name: Anonymous 2009-10-25 7:19

>>8
faggots, all of you

template <class Number> Number abs(Number x) {
  return (x>=0)?x:-x;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List