[Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?
Benoît Minisini
gambas at ...1...
Thu Jun 22 15:59:01 CEST 2017
Le 22/06/2017 à 15:21, PICCORO McKAY Lenz a écrit :
> i have some GOTO to avoit large IF-ELSE code blocks and make readable the
> code..
>
> the usage of many GOTO instructions can be bad pracitce or make influence
> in the code?
>
> i remenber that in BASIC always tell me "dont use too much"
>
> of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
If your code is more readable with GOTO than without GOTO, then use GOTO.
Note than you have GOSUB too.
Regards,
--
Benoît Minisini
More information about the User
mailing list