by goto11 · 2y ago · 0 comments
((window.location).href) == foo;
is more readable than: window.location.href == foo;In another comment [0] I mentioned that the Ada and Pony languages force the programmer to use parentheses when the expression would otherwise be confusingly reliant on precedence rules. Neither language requires unwieldy overuse of parentheses.
This C programming style advice article similarly recommends a middle-ground approach. [1]
I agree that unnecessary syntactic noise is bad (although this is essentially true by definition, as it's always a derogative). It can harm readability and make bugs more likely.
[0] https://news.ycombinator.com/item?id=38886613
[1] https://wiki.sei.cmu.edu/confluence/display/c/EXP00-C.+Use+p...