Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-18 Thread Tamas Papp
While I am not sure I understand your question, the way you handle exceptions and exit status depends on what you want to do; and this is mostly independent of whether you are using Julia or some other language. In a mature script intended for non-expert users, it would be bad form to show

Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-18 Thread Páll Haraldsson
On Monday, August 15, 2016 at 6:24:02 AM UTC, Tamas Papp wrote: > > You can use exit(0), but the exit code is implicitly 0 anyway when your > Julia script runs without errors. See > http://docs.julialang.org/en/release-0.4/stdlib/base/ Yes, I did check, the default is 1 on exception/error

Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-15 Thread Tamas Papp
You can use exit(0), but the exit code is implicitly 0 anyway when your Julia script runs without errors. See http://docs.julialang.org/en/release-0.4/stdlib/base/ On Mon, Aug 15 2016, Rishabh Raghunath wrote: > I'd like to know What the equivalent of "return 0 used in C" is in Julia > while