3 ms·
> s-expressions don't like using precedence I'd rather say that in s-expressions, precedence is regular and explicit. To me that's a strong argument in favor o
by lioeters 7y ago
> s-expressions don't like using precedence
I'd rather say that in s-expressions, precedence is regular and explicit. To me that's a strong argument in favor of it being more widely accepted as the standard.
With infix notation, operators have implicit precedences, which feel natural to us only because it's what we were taught from an early age.
I'm with the parent comment, that s-expressions ought to be advocated and evangelized (haha), as a foundational approach - even with arithmetic in basic school. If we had started thinking with it as a child, or at least later able to shed the legacy of infix notation, s-expressions are objectively simpler to understand, with fewer things to keep in mind.
Well, that sounds stronger than I meant to. I mostly write in infix-style languages, and they flow fine. But I ideologically align with Lisps - there's a conceptual simplicity and beauty that really should have been the mainstream, and still may in the future.