Timeline for Why does Rust have an infinite loop construct?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2023 at 2:33 | comment | added | joelw |
Turing also has loop ... end loop
|
|
Jun 28, 2023 at 11:56 | answer | added | HMPerson1 | timeline score: 8 | |
Jun 27, 2023 at 14:04 | answer | added | rydwolf | timeline score: 4 | |
May 27, 2023 at 10:01 | comment | added | user623 |
Go also has for { ... } which is the same as for ;; { ...} .
|
|
May 21, 2023 at 14:19 | comment | added | prosfilaes | Ada has loop ... end loop, in part because of exit (C/Rust break)/return statements and in part because of a need to loop infinitely in some low-level programs. | |
May 19, 2023 at 22:25 | comment | added | DLosc |
QBasic has something similar with DO ... LOOP , although you can also add a WHILE or UNTIL condition to either the DO or the LOOP .
|
|
May 19, 2023 at 17:45 | vote | accept | Ginger | ||
May 19, 2023 at 17:25 | comment | added | naffetS | Ruby has this too | |
May 19, 2023 at 17:23 | comment | added | cocomac |
Although it isn't necessarily good practice, note that this can also be replicated in C (and some other languages), such as with #define forever while (1) and then you can just do forever { ... }
|
|
May 19, 2023 at 17:22 | answer | added | mousetail 'he-him' | timeline score: 23 | |
May 19, 2023 at 17:19 | history | asked | Ginger | CC BY-SA 4.0 |