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

Comment by ninalanyon

7 days ago

otherwise is actually an accurate description of what -o actually means. It means do the thing on the left if it works, otherwise do the thing on the right. That is, if the clause on the left succeeds then the clause on the right will be ignored.

A naive interpretation of or in the light of Boolean algebra would be: do both and return true if either succeeds.

0 comments

ninalanyon

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities