• xurxia ( xurxia@mander.xyz ) 
    link
    fedilink
    arrow-up
    8
    ·
    3 years ago

    Hi,

    I have used goto instruction a lot when I started to program in Basic ( an Amstrad CPC 🥹). In this context goto had logic. But in modern languages like python I think it is a very bad idea:

    • Understand the logic is more complex
    • Functions and methods are a better and more powerfull alternative
    • It is dangerous: add or remove a new line of code could have bad consequences

    Regards