3 ms·
Beauty lies in the eye of the beholder, ie aesthetics are subjective. For me, using proximity instead of parentheses to signify grouping would raise an eyebrow.
by scns 5y ago
Beauty lies in the eye of the beholder, ie aesthetics are subjective. For me, using proximity instead of parentheses to signify grouping would raise an eyebrow. I'd make an exception for cases of base*exponent, i think Python has it?
- cabalamat 5y ago> Beauty lies in the eye of the beholder, ie aesthetics are subjective. Then allow everyone to do things according to their own aesthetics.
- verdagon 5y agoI personally appreciate when languages have a consistent style. I think on the whole it helps readability more than it hurts. We're enforcing whitespace around infix operators in Vale, and it's working pretty well. It's also enabling us to use <> for generics with no ambiguity =)
- scns 5y agoSure. In math education i learned to signify grouping with parens and in this case i would favour function/consistency over form/typing efficiency.
- scns 5y agoNeed to reply to myself for correction since it is to late to edit. It should say base*exponent. I think other languages use base^exponent, which would be fine with me too.