#unsure why certain parts of the code work why they do

1 messages · Page 1 of 1 (latest)

pulsar bridgeBOT
#

<@&987246399047479336> please have a look, thanks.

south ivy
#

general code improvements would also be appreciated

#

refactoring tips

robust wyvern
#
  • which condition ? The condition of the loop is true
  • because that's what a loop does ??? What do you expect it to do ?
  • same here, what did you expect ?
  • Stdin.close() closes stdin, nothing else
robust wyvern
south ivy
robust wyvern
#

The goal of a while loop is to repeat things, what did you expect?

south ivy
#

i know that. but what im asking is why does having a while loop with true as its parameter retry the try part of a try catch block if an exception is caught?

#

the same goes for a switch statement with a while loop with true when invalid input is entered