Hacker News new | ask | show | jobs
by chobytes 1872 days ago
Agreed. With normal math notation I can just see how something works. In programming language math notation I cant even always parse the hierarchy.
1 comments

In general, that depends on the programming language though, and not all things in math are easy to parse and rely on precedence rules. Math is far from optimal in this aspect and I guess you just have experience in reading math.
Mathematical notation is not perfect, but it does a pretty good job of choosing clarity when ambiguity might be a problem. For a basic example, the fraction bar for division makes groupings obvious, where a single '/' in a long string of text can get visually lost. Of course it's understandable that most programming languages would shy away from special notation like that in favor of plain text, but it gives mathematical notation a strong clarity advantage, in my opinion.