There's no difference in how the code works or which one is quicker. continue
is basically the same as putting everything below in else
.
What I do is: If you are doing something similar, I would use if/else
. If what you are doing is conceptually different I would use the continue
example.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…