I'm new to weakly typed high level scripting languages and such. Both JavaScript and Python seem to support objects which are like.. not really objects. But lumps you sort of deform however you like at run time by just appending shit willy nilly. How is this a good thing? When is this a good thing? Even inheritance get messy as all hell. Is there even a situation where this is a good thing besides inheritance?
Name:
Anonymous2012-01-21 5:03
1/10
Name:
Anonymous2012-01-21 5:14
>>2
No, I'm butt serious. This shit is new to me and I don't see the point. Well I guess it may simply be the only way objects could be implemented, considering how names are bound to values and shit rather than declared beforehand.. But still, it's pretty damn nasty.
classical inheritance is the thing that is SHIT, not objects as bags of properties
Name:
Anonymous2012-01-21 5:53
Ok, I guess I can get into the idea of having objects as bags of properties.. It still seem like it would allow you to create a huge mess, but I guess that's not really a problem for these softer languages where performance is of no importance.
Don't use this stupid "duck typing" term. A good reason not to is that dynamic typing existed more than 40 years before the stupid term, which only dates back to 2000. Nobody felt the need to call it duck typing, so why start now.