Do you consider this technique “BAD”?

前端 未结 28 1957
借酒劲吻你
借酒劲吻你 2021-02-02 10:57

Sometimes you need to skip execution of part of a method under certain non-critical error conditions. You can use exceptions for that, but exceptions generally are not

28条回答
  •  暖寄归人
    2021-02-02 11:42

    You have complicated non-linear control flow inside a difficult to recognize idiom. So, yes, I think this technique is bad.

    It might be worthwhile to spend sometime trying to figure out if this can be written a little nicer.

提交回复
热议问题