in reply to Re: Return statement in subroutine(s) is necessary when not returning anything?
in thread [SOLVED] Return statement in subroutine(s) is necessary when not returning anything?
Hello stevieb,
Thank you for your time and effort reading and replying to my question. Well yeah you are right, it is easier and better way of coding to place a return; (void) to show that your subroutine ends there.
But also as Anonymous pointed out, it is better to return (void) instead of implicit return.
That been said I have my answer to my question. Thank you for your time and effort it helped to clear out my thought.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Return statement in subroutine(s) is necessary when not returning anything?
by stevieb (Canon) on Nov 02, 2015 at 23:05 UTC | |
by thanos1983 (Parson) on Nov 02, 2015 at 23:11 UTC |