vmtouch icon indicating copy to clipboard operation
vmtouch copied to clipboard

Removed goto statements

Open abijith-kp opened this issue 9 years ago • 4 comments

Is there any specific reason to keep the goto statements in the code? I have tried to remove those statements with minimal changes.

abijith-kp avatar Jul 02 '16 20:07 abijith-kp

Thanks for the patch. You're right there's no great reason to prefer goto here since both these instances are essentially loops. However, IMO it's somewhat nice that the destinations have readable labels such as retry_open and bail, and these are removed in this patch.

I'll consider this for the next release, thanks!

hoytech avatar Jul 10 '16 14:07 hoytech

Thank you. On Jul 10, 2016 7:45 PM, "Doug Hoyte" [email protected] wrote:

Thanks for the patch. You're right there's no great reason to prefer goto here since both these instances are essentially loops. However, IMO it's somewhat nice that the destinations have readable labels such as retry_open and bail, and these are removed in this patch.

I'll consider this for the next release, thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoytech/vmtouch/pull/36#issuecomment-231591208, or mute the thread https://github.com/notifications/unsubscribe/ACEcbzLc2z-ILlmvX41eW3shxTP0NV2cks5qUP5zgaJpZM4JDvnQ .

abijith-kp avatar Jul 10 '16 14:07 abijith-kp

Oops, I can't merge this patch because of conflicts caused in another branch I merged in. I'm going to leave this out for the next release, maybe we can get to it in some code clean-up I'm planning later.

hoytech avatar Aug 08 '16 19:08 hoytech

Yeah sure.

On Tue, Aug 9, 2016 at 12:44 AM, Doug Hoyte [email protected] wrote:

Oops, I can't merge this patch because of conflicts caused in another branch I merged in. I'm going to leave this out for the next release, maybe we can get to it in some code clean-up I'm planning alter.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoytech/vmtouch/pull/36#issuecomment-238345437, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEcbzZapdBNA1ACKU3NJlDnYeVIOoJeks5qd4AWgaJpZM4JDvnQ .

Abijith KP github.com/abijith-kp abijithkp.me

abijith-kp avatar Aug 21 '16 17:08 abijith-kp