On Tue, Mar 21, 2017 at 5:52 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> Sound backwards to me. What am I missing? Conditionals in all language have a semantic gap issue. Test conditions are often the reverse of what makes for good code --- which is why you find inverted conditionals in perl (e.g. unless), and other languages often force you to add a "not" in the condition to get the same effect. This is exacerbated by the fact that conditionals are often easier to read if the short case is the "then" and the longer one the "else". (This is actually a fairly complex language design issue: "unless" is more directly readable, but means you need to keep track of more language elements before you can read the language at all. Designing to balance cognitive load is hard.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net