Being pressured to GOTO the dark-side

前端 未结 10 966
我在风中等你
我在风中等你 2020-12-23 16:21

We have a situation at work where developers working on a legacy (core) system are being pressured into using GOTO statements when adding new features into existing code tha

10条回答
  •  再見小時候
    2020-12-23 16:39

    I recently had to work on some code that wasn't legacy per se, but the former developers' habits certainly were and thus GOTO's were everywhere. I don't like GOTO's; they make a hideous mess of things and make debugging a nightmare. Worse yet, replacing them with normal code is not always straightforward.

    IF you can't unwind your GOTO's I certainly recommend that you no longer use them.

提交回复
热议问题