Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Niddam yes, but it technically has a If call. Hell, for all I know their teacher might be old school enough to have a history of using If, Then, Goto blocks.
-
@DodgerAkame then I've got nothing... Some people just want to watch the logic structures burn.
-
johnDoe32138yThe only use I can think of using an if as a loop is the base case on a recursive call... but that a recursive loop not an if loop
Related Rants
A funny story I just remember while my code is compiling :
Back in high school, in Math, we were taught how algorithm works, and we made some exercises with practical examples.
I didn't know anything about it back then, so was curious. Was pretty fun, but one day, my teacher said that a IF is a loop. I said "no, this is a test" but she keeps saying that it was a loop, ignoring me (I dunno if she actually heard me) and no one actually noticed it as she repeated it several times (while I was saying that it's not). I just gave up trying to say it's wrong.
undefined
algorithm
really?
math
if = while