Code
Posted By matt on September 25, 2006
Here is a short answer bunch of questions for all the hackers in the crowd.
(1) What are your opinions of the usage of the following keywords, in any language which supports them:
return
goto
break
continue
(2) What is wrong with the following construct:
for(i=0; i < foo.length; ++i)
{
if(foo[i]){ continue; }
else
{
++some_counter;
}
}
(3) If your whole department did not see a problem with using the following:
- multiple returns
- breaks (aside from switch statements)
- continue
But felt that “goto” was bad, and “select *” from a DB is even worse, what would be your reaction?
Comments
Leave a Reply
Please note: Comment moderation is currently enabled so there will be a delay between when you post your comment and when it shows up. Patience is a virtue; there is no need to re-submit your comment.