0 کاربر و 1 مهمان درحال مشاهده موضوع.
نه. در کل در هیچ زبانی استفاده از goto درست نیست و نباید ازش استفاده بشه.
I'd argue, as many others would argue, that in all of these cases, the usage of goto is used as a means to get out of a corner one coded oneself into, and is generally a symptom of code that could be refactored.
اولینقلقولI'd argue, as many others would argue, that in all of these cases, the usage of goto is used as a means to get out of a corner one coded oneself into, and is generally a symptom of code that could be refactored.
Hence, in both cases, the use of the goto statement can be justified from the viewpoint of the correctness proof in Hoare Logic.