Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by amelius

2 months ago

You need more than if for Turing completeness though.

6 comments

amelius

Reply

thwarted  2 months ago

You need conditionals and loops. Recursion counts as looping.

alexdns  2 months ago

Correct. You need at least 2 ifs.

  • spooky_deep  2 months ago

    You need unbounded recursion no?

    • dotancohen  2 months ago

      That's actually what two ifs could be.

      2 replies →

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities