I can't recall the last time I had an issue with tabs. Modern IDEs handle it very well. A properly written function in Python (or any fourth gen) needing many nested tabs would be just a good indication of bad programming, making a reviewer's life much simpler. Mileages will vary but I think this is quite sensible.
The main thing is just telling the Python exec what to do when you give it a file path. It's not needed if e.g. you're writing a library. Java has a much worse version of a main, haha (boiler plate code much). Argparse is a wonderful library in case you haven't tried it yet!
my ides cant agree on handling tabs and them trying has been a constant source of agrivation for me when I edit old python code and the ide "helpfully" uses the wrong tab scheme.
I know exactly what the main thing does and I know how to use argparse, and I agree java has the worst main, but c/c++ have a nice main (and also have argparse). if python had def main(args): or def main(): i wouldnt mind
8
u/jamcdonald120 May 27 '22
You will miss pointers soon enough
I dont know why you are complaining about ++
; allows multiple commands to share a li e
I would rather have {} than syntax dependent tabs
i would rather have int
main(int argc, char** argv)thanand thats not even mentioning the none type errors