You have the right to disagree, I'm saying this is a case where I see goto have it's usefulness. Yes you can split into multiple function but sometimes there is 10+ parameters involved and creating subfunction doesn't make it clearer. I respect your opinion and your strict mode but don't get me wrong... all languages [more or less] have the goto keyword or an equivalent.
Jcmorin
Posts
-
goto... Who uses it? -
goto... Who uses it?see my example the message above your. If goto were that bad new language like C# would not have include it. It has a purpose, but it must be use in special case. Yes it can be avoided but something it the most clean solution.
-
goto... Who uses it?The goto is not required, you can always skip around with variable but sometime it's the best solution. In this example the goto is a clear simple example, remove it and you introduce less readable and more complexity.
function BigFunction() {
for (int i =0; i < 100; i++) {
while(true) {
if (...) {
goto DO_SOMETHING_AT_THE_END;
}
}
}DO_SOMETHING_AT_THE_END:
DoSomething();
} -
What is the best font for programming?I like Consolas, compact and easy to ready....
-
HTML 5 [modified]I still can't believe that the best html tag ever created will be gone. The 1 letter b and i tag will be replace with with other meaning, this is ridiculous. This will create tons for breaking page, especially the forum where the user input could contains those tag. # Citation from the document # The b element now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is emboldened. The i element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
-
RAR vs ZIPThe fact are, Winrar is better than Winzip. - Archive are smaller - Compress faster (at equal compression ratio)
-
StoreFrontI'm not getting error but I do check when it's gonna be available. I've contact the sale support on November 7th and they still don't know when they gonna have it. Any update on this? <- using the Express edition while waiting.
-
Difference between VS .Net 2005 Enterprise Edition and Professional EditionI've never heard of the Enterprise edition... Microsoft Visual Studio product comparison[^] I think you mixing with the Team System that allows collaboration inside a team.