logoalt Hacker News

tejtmlast Tuesday at 6:40 PM1 replyview on HN

We absolutely order more likely / preferred options before other options. Codifying that as a short circuit optimization is a feature.


Replies

layer8last Tuesday at 8:43 PM

We rarely have preferences that are independent of the concrete use case. Your argument boils down to saying that existing precedence hierarchies are badly designed (or else they would always match everyone’s intuitions), but that’s not the case. (Operator precedence is only one illustrative example here.)