Earlier quoted context omitted.
Which programming languages? When using C++ I wanted programs to have a function that was called before main() and set up things that got sealed afterwards, like parsing command-line-arguments, the environment variables, loading runtime libraries, and maybe look at the local directory, but I'm not sure if it'll be a useful and meaningful distinction unless you restructure way too many things. I remember that on the F…
What is wrong with main setting those things first and then starting your main program? That is what everyone else does.
They might do it for testing purposes.