The old question Should a function have only one return statement? has been closed as Not Constructive, and it has been deleted.
Let's examine that - is it really not constructive? Well, yes and no:
- Yes, because it solicits opinion, debate and/or extended answers
- No, it is constructive because:
- voting over time has produced clear and definitive answers
- there are sources quoted, i.e. here, here and here, and I found these before I had even scrolled half way down the first page
- the very same question continues to be asked, which means this question can be considered canonical and all duplicates can be pointed to it
This request to reopen and preserve the above question was prompted by the recently posted question Is it good practice use more that one RETURN statement in a method?, which was closed as a duplicate of Why is it good practice to return at the end of a method, which itself was closed as Not Constructive when instead it could have been closed as a duplicate of Should a function have only one return statement?.... if only that wasn't deleted.
So, in summary:
- can we please reopen or undelete this question and do what we need to do to mark it as canonical
- if it is reopened, we can remove the fluff or low ranking answers as necessary
Should the original question that I propose be canonicalised be re-deleted, this means we should also be deleting all the other later duplicates of that question. Then (in an ideal world) we should also have a method of letting new users know that question is black listed and any version of it that they ask will be deleted.