Re:An exploration of why Python doesn't require a 'main' fun...
by uryga on Tuesday July 21, 2020 @01:34PM
(#23908887)
> especially in contrast with c and other languages that shoehorn you into defining a main function
i don't think that's a problem in languages with namespaces/modules -- a module might define a main(), it just wouldn't be used when it's imported. (unless you're in C, then you'd get a name clash)
i don't think that's a problem in languages with namespaces/modules -- a module might define a main(), it just wouldn't be used when it's imported. (unless you're in C, then you'd get a name clash)