Quantcast
Channel: Python. Good, bad, evil -1-: Missing brace
Viewing all articles
Browse latest Browse all 20

php6 at Sun, 21 Feb 2010 19:30:46 +0100

$
0
0
@trond You've misunderstood me. In PHP you just use classes. In python you don't know if you should/could classes or function inside module. What I mean, that after php it looks like cumbersome, because it is mix of functions and classes in module. In well written php you never see such organization of files. There is strict separation between functions and classes. Usually, you have some script.php which instantiate classes, but you never see functions definitions inside of some Foo.class.php module.py def some_function(): foo = SomeClass foo.doSomething() class SomeClass: def doSomething(self): pass

Viewing all articles
Browse latest Browse all 20

Trending Articles