News for hackers. Stuff that matters.
Re:Crystal: Fast as C, Slick as Ruby by catnaroek on Thursday August 04, 2016 @12:44PM (#12226770)
So the behavior of a subclass of an abstract class depends on whether both classes are defined in the same module or in different ones:

(0) If Snake is in the same module as Animal, the error is that “john.pet.talk” is a call to a nonexistent method.

(1) If Snake is in a different module from Animal, the errors is that Snake doesn't have a talk method.

This isn't nice.

There are no comments on this comment yet.