Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Since goto is getting so popular these days....

Since goto is getting so popular these days....

Scheduled Pinned Locked Moved The Lounge
questionlinuxtoolshelp
41 Posts 31 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rastaVnuce
    wrote on last edited by
    #1

    I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

    We are using Linux daily to UP our productivity - so UP yours!

    E M M J S 20 Replies Last reply
    0
    • R rastaVnuce

      I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

      We are using Linux daily to UP our productivity - so UP yours!

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      Depends if an interrupt gets executed that fails to push the stack.

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me

      1 Reply Last reply
      0
      • R rastaVnuce

        I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

        We are using Linux daily to UP our productivity - so UP yours!

        M Offline
        M Offline
        Michael Schubert
        wrote on last edited by
        #3

        rastaVnuce wrote:

        Will I goto hell if I use it?

        Yes. Unless you're programming in GWBasic.

        K E 2 Replies Last reply
        0
        • M Michael Schubert

          rastaVnuce wrote:

          Will I goto hell if I use it?

          Yes. Unless you're programming in GWBasic.

          K Offline
          K Offline
          Kevin Marois
          wrote on last edited by
          #4

          GWBasic was cool. I did an awesome app in it wayyyy back in the day.

          Everything makes sense in someone's mind

          L 1 Reply Last reply
          0
          • M Michael Schubert

            rastaVnuce wrote:

            Will I goto hell if I use it?

            Yes. Unless you're programming in GWBasic.

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #5

            Michael Schubert wrote:

            Unless you're programming in GWBasic.

            Not even QBasic? I co-ran a BBS written in QBasic, the two of us had a door-manager that we wrote that converted games from as many other BBS systems as we could find and made them run under our BBS. :) we had the most BBS games of any other BBS in the southwest, and possibly much farther out. :-D

            _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

            1 Reply Last reply
            0
            • R rastaVnuce

              I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

              We are using Linux daily to UP our productivity - so UP yours!

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #6

              rastaVnuce wrote:

              elegantly solvable by using goto

              "elegant" and "goto" should not be in the same sentence. ;) Marc

              K P 2 Replies Last reply
              0
              • R rastaVnuce

                I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                We are using Linux daily to UP our productivity - so UP yours!

                J Offline
                J Offline
                Jon Sagara
                wrote on last edited by
                #7

                You have been warned[^].

                Jon Sagara Some see the glass as half-empty, some see the glass as half-full. I see the glass as too big. -- George Carlin .NET Blog | Personal Blog | Articles

                E I 2 Replies Last reply
                0
                • R rastaVnuce

                  I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                  We are using Linux daily to UP our productivity - so UP yours!

                  S Offline
                  S Offline
                  Single Step Debugger
                  wrote on last edited by
                  #8

                  rastaVnuce wrote:

                  Will I goto hell if I use it?

                  You’ve got ticket to hell for just mentioning it. :-D

                  The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                  1 Reply Last reply
                  0
                  • J Jon Sagara

                    You have been warned[^].

                    Jon Sagara Some see the glass as half-empty, some see the glass as half-full. I see the glass as too big. -- George Carlin .NET Blog | Personal Blog | Articles

                    E Offline
                    E Offline
                    El Corazon
                    wrote on last edited by
                    #9

                    Jon Sagara wrote:

                    You have been warned[^].

                    what if I write a self-modifying application... I bet there is no xkcd punishment for that! :~:~:~

                    _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

                    1 Reply Last reply
                    0
                    • R rastaVnuce

                      I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                      We are using Linux daily to UP our productivity - so UP yours!

                      M Offline
                      M Offline
                      Marcus_Idle
                      wrote on last edited by
                      #10

                      I get that this is a joke question, but seriously, why so much debate about it? It messes with flow in a pretty unreadable way, and the whole point of modern (post 1950) computer languages is that you write for your colleagues (or your future self) so why do it? But we've all seen a lot worse[^], so goto isn't the devil incarnate... end of story(?)

                      J 1 Reply Last reply
                      0
                      • M Marc Clifton

                        rastaVnuce wrote:

                        elegantly solvable by using goto

                        "elegant" and "goto" should not be in the same sentence. ;) Marc

                        K Offline
                        K Offline
                        kevinnicol
                        wrote on last edited by
                        #11

                        Unless the sentence is "how to elegeantly fire that coder who keeps using goto's in his code."

                        1 Reply Last reply
                        0
                        • R rastaVnuce

                          I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                          We are using Linux daily to UP our productivity - so UP yours!

                          T Offline
                          T Offline
                          Tomz_KV
                          wrote on last edited by
                          #12

                          "GOTO" is a good statement in sql that cannot be easily replaced.

                          TOMZ_KV

                          1 Reply Last reply
                          0
                          • R rastaVnuce

                            I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                            We are using Linux daily to UP our productivity - so UP yours!

                            P Offline
                            P Offline
                            Pete OHanlon
                            wrote on last edited by
                            #13

                            While I would not normally consider using the force for negative purposes, I'm seriously considering making your lower intestines leak out of your left ear just for suggesting it.

                            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                            My blog | My articles | MoXAML PowerToys | Onyx

                            1 Reply Last reply
                            0
                            • R rastaVnuce

                              I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                              We are using Linux daily to UP our productivity - so UP yours!

                              C Offline
                              C Offline
                              Christian Graus
                              wrote on last edited by
                              #14

                              I've NEVER held a religious view about goto. I do agree that overuse can make code unreadable. I've never used goto in my code, in 12 or so years of programming, because it's never been the best solution.

                              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                              G F 2 Replies Last reply
                              0
                              • R rastaVnuce

                                I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                                We are using Linux daily to UP our productivity - so UP yours!

                                T Offline
                                T Offline
                                Tom Delany
                                wrote on last edited by
                                #15

                                I've heard some claim that it is valid if you're writing a state machine. Personally, I avoid goto like the plague!

                                WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated. There are 10 kinds of people in the world: People who know binary and people who don't.

                                M 1 Reply Last reply
                                0
                                • R rastaVnuce

                                  I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                                  We are using Linux daily to UP our productivity - so UP yours!

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #16

                                  Is the goto becoming popular? How silly. It's just a tool, just like any other keyword used for a predefined function. Mind you, I'm still pissed off that the C+ chaps refused my demand to have the return statement keyword changed to "otog" -- symmetry is so important in programming; it makes everything more understandable.

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  R 1 Reply Last reply
                                  0
                                  • T Tom Delany

                                    I've heard some claim that it is valid if you're writing a state machine. Personally, I avoid goto like the plague!

                                    WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated. There are 10 kinds of people in the world: People who know binary and people who don't.

                                    M Offline
                                    M Offline
                                    Mike Marynowski
                                    wrote on last edited by
                                    #17

                                    If you look at the state machine class that is automatically generated for a method that uses the C# yield return keyword, you will find goto statements. I think it would be brutally messy to implement otherwise.

                                    1 Reply Last reply
                                    0
                                    • R rastaVnuce

                                      I have a problem which is elegantly solvable by using goto. Will I goto hell if I use it? Disclaimer: This is not a programming question, it is a religious / philosophical one.

                                      We are using Linux daily to UP our productivity - so UP yours!

                                      B Offline
                                      B Offline
                                      BillWoodruff
                                      wrote on last edited by
                                      #18

                                      One-time-only, or occasional, use of 'goto will simply intensify the awareness of the Hell you are already in, but if used recursively, 'goto renders you fully aware of said Hell, and thus unable to reboot your consciousness. best, Bill

                                      "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

                                      1 Reply Last reply
                                      0
                                      • M Mark_Wallace

                                        Is the goto becoming popular? How silly. It's just a tool, just like any other keyword used for a predefined function. Mind you, I'm still pissed off that the C+ chaps refused my demand to have the return statement keyword changed to "otog" -- symmetry is so important in programming; it makes everything more understandable.

                                        I wanna be a eunuchs developer! Pass me a bread knife!

                                        R Offline
                                        R Offline
                                        Rob Grainger
                                        wrote on last edited by
                                        #19

                                        Busog shurely

                                        M 1 Reply Last reply
                                        0
                                        • R Rob Grainger

                                          Busog shurely

                                          M Offline
                                          M Offline
                                          Mark_Wallace
                                          wrote on last edited by
                                          #20

                                          Please don't call me Shurely.

                                          I wanna be a eunuchs developer! Pass me a bread knife!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups