News for hackers. Stuff that matters.
Re:Startpoint: A saner replacement for `if __name__ == “__ma... by earenndil on Friday February 09, 2018 @01:11AM (#16338265)
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__ == “__ma... by pavelbr on Friday February 09, 2018 @01:36AM (#16338373)
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.
Re:Startpoint: A saner replacement for `if __name__ == “__ma... by pavelbr on Friday February 09, 2018 @12:35AM (#16338122)