Hacker News new | ask | show | jobs
by ta0967 3630 days ago
> normal conditionals are common in everyday life: "If they don't have a dark roast coffee, get me a medium roast."

"They had dark roast so I got you nothing as requested."

IOW, this program is either incomplete or wrong. Cf. "Get me the darkest roast they have." - ifless, concise, robust.

2 comments

So if it's an undrinkable mud you are still happy, code executed perfectly :)
What if I want a vanilla latte instead?