4 ms·
It just means "while A, do B". The do is implicit, just like with if, for, etc.
by Scarblac 3y ago
It just means "while A, do B". The do is implicit, just like with if, for, etc.
- xnorswap 3y agoThe Do is explicit in some languages like Visual Basic: https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/do-loop-statement https://learn.microsoft.com/en-us/dotnet/visual-basic/langua... Now it's a bit confusing if you're used to other languages, because you might think "while" is a test-at-start and "Until" is test-at-end, but actually while and until can both be tested either at the start or the end, and While and Until are just testing the negation of each other. It can also be extra confusing, because there is a separate While.. End loop without the Do that can be used instead. There's a reason Visual Basic died out, and it isn't just the snobbishness of seeing C# as more of a "real" language.
- taeric 3y agoI confess various Basics all dying out feels more and more like the result of snobbishness as I get older.