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

Classes in scripting languages

Name: Anonymous 2012-01-21 4:59

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: Anonymous 2012-01-21 5:03

1/10

Name: Anonymous 2012-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.

Name: Anonymous 2012-01-21 5:37

classical inheritance is the thing that is SHIT, not objects as bags of properties

Name: Anonymous 2012-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.

Name: Anonymous 2012-01-21 6:00

Don't worry, the dependable /prog/rider can create a huge mess in any language as the need arises.

Name: Anonymous 2012-01-21 17:28

Name: Anonymous 2012-01-21 17:31

>>7
I still don't understand how is that different from what Smalltalk did since ever.

Name: Anonymous 2012-01-21 18:47

>>8
yeah, it's the same thing.

Name: Anonymous 2012-01-22 0:48

>>8
Or what Lisp has been doing for at least a decade earlier.

Name: Anonymous 2012-01-22 1:48

>>7

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.

Name: Anonymous 2012-01-22 2:09

>>11
what should we call it instead?

Name: Anonymous 2012-01-22 2:46

Late Binding, as it has been known in the CACM since the 60s.

Name: Anonymous 2012-01-22 3:39

>>1
Learn Haskell. Enjoy your insanity.

Name: Anonymous 2012-01-22 4:23

>>13 thnks

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