Thanks for those tips. I was aware that you can return without using the keyword 'return', but old habits kicked in when I wrote this :)
Thinking about it, the explicitness of having the 'return' keyword is something I find nice, to quickly scan a function to easily identify the places it returns.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for those tips. I was aware that you can return without using the keyword 'return', but old habits kicked in when I wrote this :)
Thinking about it, the explicitness of having the 'return' keyword is something I find nice, to quickly scan a function to easily identify the places it returns.