News for hackers. Stuff that matters.
Re:A Square Is Not A Rectangle by apotheon on Saturday September 26, 2009 @01:43AM (#845117)
Okay, so I came back finally and checked again to see if I could get in.

My thought, now, is that a functional approach to making square a "subclass" (by stretching the term "subclass" out of the confines of its traditional Java-style OOP usage) of rectangle.

    (define (square s)
      (rectangle s s))
Simple. Yes?

There are no comments on this comment yet.