Generally the function main is intended for programs which will be run as an executable or script, so if that’s what you’re building, I’d say it makes sense (that’s usually how I create scripts in Julia too). Otherwise, if you’re writing a package to be a library, main doesn’t make sense.
6 Likes