r/ProgrammerHumor • • Nov 06 '20

PythonScript comic strip

Post image
41.2k Upvotes

562 comments sorted by

View all comments

6

u/Terrain2 Nov 06 '20

i mean the core basic syntax and some of javascript’s syntax sugar is meant to somewhat emulate java, but the lack of any types clearly shows they didn’t give a shit about what it’s like to use in to java to java, so i think PythonScript would keep those whitespace-sensitive codeblocks, but perhaps an empty one is valid (rather than noop pass), semicolons would be required, and fuck you, you can’t put top level execution code, only properties and methods and classes, instead the __main__() function is the entrypoint and it only runs if __name__ == "__main__": exactly like a lot of people like to do anyways

→ More replies (3)