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

OO vs procedural

Name: Anonymous 2007-03-01 4:30 ID:WOeEZFMF

Tell me about it.

Name: Anonymous 2007-03-08 5:57 ID:3b42YNTO

>>53
Python's OO is good exactly because it's not OO-fanatic and doesn't get in the way when OO does not adjust properly to a particular problem. Right tool for the right job, fags.

I agree that it should provide more functional programming tools, but right now you have built-in lists (and dictionaries), first-class functions and classes, lexical scoping, lambdas, lazy iterators, coroutines, and you can do a lot of stuff, from the basic list operations (map, filter, fold, scan, zip, etc.) to function manipulation (currying, composition, etc.). You can write/pasta decorators to memoize or tail-recursion-optimize your functions. That's more than most languages offer.

As for usefulness, bullshit. Python's standard library and cheese shop are awesome.

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