The last functional (which I assume you mean in contrast to object oriented) language I used was C, in which this would be a total nightmare. (Reason #4591 to avoid C, eh?) And in Java and other OO languages, this is a non-issue...you'd just operate on your object using whatever methods it provided to do so.
no subject
Date: 2008-03-10 01:07 pm (UTC)The last functional (which I assume you mean in contrast to object oriented) language I used was C, in which this would be a total nightmare. (Reason #4591 to avoid C, eh?) And in Java and other OO languages, this is a non-issue...you'd just operate on your object using whatever methods it provided to do so.
So...why DOESN'T Ruby allow it?