<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023, 5:55 PM segaloco <<a href="mailto:segaloco@protonmail.com">segaloco@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I guess I hadn't considered deeply nested loops. I contort myself into a mental pretzel figuring out how to avoid GOTOs sometimes, maybe I could stand to embrace one every once in a while myself...</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yea. I recall a proposal to add break label; and the label could only be at the end of a loop. The objection was why bloat the compiler with another goto... I developed my restricted lack of fear after a stint in Java with its multilevel break...</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">Now doing some research, more languages support GOTO than I thought, including C#, PHP, even Rust for all its safety orientation appears to at least muster a GOTO-ish construct. If people keep doing it, it must still be wanted, needed, and useful. I stand corrected on my never-GOTO attitude. Now to slip a GOTO into a work project and see how long it takes to get chastised :)<br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">- Matt G.<br></div><div>
------- Original Message -------<br>
On Thursday, March 9th, 2023 at 3:54 PM, Warner Losh <<a href="mailto:imp@bsdimp.com" target="_blank" rel="noreferrer">imp@bsdimp.com</a>> wrote:<br><br>
<blockquote type="cite">
<div dir="auto">Oh also sometimes for breaking out of multiple levels of while/for loops. The alternatives are often worse.<div dir="auto"><br></div><div dir="auto">Warner</div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Thu, Mar 9, 2023, 4:31 PM Luther Johnson <<a href="mailto:luther@makerlisp.com" rel="noreferrer nofollow noopener noreferrer" target="_blank">luther@makerlisp.com</a>> wrote:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote">
<div bgcolor="#FFFFFF">
<p>I agree, unless I use setjmp/longjmp for that. Besides error
recovery, there are occasionally other times when we want to
locally "return" to a common state and start "from the top" again.
I find such uses very clear in their intent, and if commented
well, not hard to follow at all - as long as there is not more
than one "top" :)<br>
</p>
<div>On 03/09/2023 04:21 PM, Warner Losh
wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Thu, Mar 9, 2023, 4:18
PM segaloco via TUHS <<a rel="noreferrer nofollow noopener noreferrer" href="mailto:tuhs@tuhs.org" target="_blank">tuhs@tuhs.org</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote">GOTO is
one of those paradoxical things where I would only trust
the most sophisticated engineer to know when it's
acceptable to use a GOTO but on the flip side would be
suspicious of anyone claiming to be an engineer that uses
any amount of GOTOs...<br>
<br>
Were any of the various GOTOs in languages ever meant to
be any more than providing the same level of control that
branch statements in assembly do? Was there ever some
vision anyone's aware of concerning a sophisticated,
dependable use of GOTOs? Since my first days poking
around learning C GOTO has been mentally filed away as an
assembly vestige for folks in transition, not a dependable
construct in its own right. Any alternative camps out
there?<br>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">In C I use it all the time to do goto err for
common error recovery because C doesn't have anything better.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Warner </div>
<div dir="auto">
<div class="gmail_quote">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote">
- Matt G.<br>
<br>
------- Original Message -------<br>
On Thursday, March 9th, 2023 at 3:01 PM, Steffen Nurpmeso
<<a rel="noreferrer nofollow noopener noreferrer" href="mailto:steffen@sdaoden.eu" target="_blank">steffen@sdaoden.eu</a>> wrote:<br>
<br>
<br>
> I wonder if Pink Floyd's Summer68 maybe refers to
this.<br>
> Other than that i am addicted and could not live
without it.<br>
> The other (terrible) song is from 1984 (east southern
US).<br>
> <br>
> --steffen<br>
> |<br>
> |Der Kragenbaer, The moon bear,<br>
> |der holt sich munter he cheerfully and one by one<br>
> |einen nach dem anderen runter wa.ks himself off<br>
> |(By Robert Gernhardt)<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div>
</blockquote><br>
</div></blockquote></div></div></div>