DEV Community

Discussion on: Do you code on the weekend? How often, what’s your routine like?

Collapse
 
r7e98kva profile image
Markus

Repeat?
Recursion in a while loop?

Collapse
 
kennycoc profile image
Kenneth Cochran

Could be ala clojure.

(loop
  (eat)
  (sleep)
  (code)
  (if (alive?)
      (recur)))
Collapse
 
natonathan profile image
Nathan Tamez

haha, thanks it should be

// Recursion in a while loop Bug fix
day(){
    eat();
    sleep();
    code();
    if (alive)  day();
}
Collapse
 
jack profile image
Jack Williams

Codeception, I love it