Yeah it’s totally fine to use top-level variables in a simple Julia script like that — especially for configs and basic flow. But if you’re doing performance-heavy stuff or using Revise a lot, it’s better to wrap things in a main()
function and maybe use const
for fixed values. Helps with compile times and avoids weird recompile issues. But for most scripts, you're good!