Live data from Hacker News

Startpoint: A saner replacement for `if __name__ == “__main__”`

github.com

1–5 of 5 posts

Re: Startpoint: A saner replacement for `if __name__ == “__main__”`

#4
To be honest, the overhead of getting a library such as this one integrated into a project...isn't worth the overhead or extra time taken over just writing `if __name__ == "__main"`. Yes, having to write that out is shitty, and there should be a better way, but that's the best we have and a librarified solution isn't better, it's missing the point.

Re: Startpoint: A saner replacement for `if __name__ == “__main__”`

#5

To be honest, the overhead of getting a library such as this one integrated into a project...isn't worth the overhead or extra time taken over just writing `if __name__ == "__main"`. Yes, having to write that out is shitty, and there should be a better way, but that's the best we have and a librarified solution isn't better , it's missing the point.

I thought about this for a while before I published it. In the end, I thought it was neat and didn't see a reason not to.